summaryrefslogtreecommitdiff
path: root/tests/test_xpath_variables.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-21 21:07:58 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-21 21:07:58 -0700
commita6cc636a6b0d531686311b5666ea77225b10903e (patch)
tree9c030c384f835ecddf70cdd2d4d2cbb02e60dd25 /tests/test_xpath_variables.cpp
parent250d020e9b121f537bbcbf8439033ba4a6f225ef (diff)
tests: Fix MSVC warnings
Diffstat (limited to 'tests/test_xpath_variables.cpp')
-rw-r--r--tests/test_xpath_variables.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp
index 1fe0b6e..f72d6ff 100644
--- a/tests/test_xpath_variables.cpp
+++ b/tests/test_xpath_variables.cpp
@@ -527,8 +527,8 @@ TEST(xpath_variables_copy_big)
{
char_t name[4];
name[0] = 'a';
- name[1] = '0' + (i / 10);
- name[2] = '0' + (i % 10);
+ name[1] = '0' + char_t(i / 10);
+ name[2] = '0' + char_t(i % 10);
name[3] = 0;
set.set(name, double(i));
@@ -540,8 +540,8 @@ TEST(xpath_variables_copy_big)
{
char_t name[4];
name[0] = 'a';
- name[1] = '0' + (i / 10);
- name[2] = '0' + (i % 10);
+ name[1] = '0' + char_t(i / 10);
+ name[2] = '0' + char_t(i % 10);
name[3] = 0;
CHECK(copy.get(name) && copy.get(name)->get_number() == i);
@@ -556,8 +556,8 @@ TEST(xpath_variables_copy_big_out_of_memory)
{
char_t name[4];
name[0] = 'a';
- name[1] = '0' + (i / 10);
- name[2] = '0' + (i % 10);
+ name[1] = '0' + char_t(i / 10);
+ name[2] = '0' + char_t(i % 10);
name[3] = 0;
set.set(name, double(i));
@@ -572,8 +572,8 @@ TEST(xpath_variables_copy_big_out_of_memory)
{
char_t name[4];
name[0] = 'a';
- name[1] = '0' + (i / 10);
- name[2] = '0' + (i % 10);
+ name[1] = '0' + char_t(i / 10);
+ name[2] = '0' + char_t(i % 10);
name[3] = 0;
CHECK(!copy.get(name));