mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-26 21:04:25 +08:00
tests: Fix MSVC warnings
This commit is contained in:
parent
250d020e9b
commit
a6cc636a6b
@ -614,7 +614,7 @@ TEST(xpath_api_query_vector)
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
char_t expr[2];
|
||||
expr[0] = '0' + i;
|
||||
expr[0] = '0' + char_t(i);
|
||||
expr[1] = 0;
|
||||
|
||||
qv.push_back(xpath_query(expr));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user