diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-06 06:13:10 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-06 06:13:10 +0000 |
commit | fdc03d39abdeeeadc7e0d47b49462464ffa3cd85 (patch) | |
tree | 85aa7269e5861132898494984f415b430a19338d /tests/test_parse.cpp | |
parent | 6e02258ef6fc8c99f949ba0ed7617d006725d3b5 (diff) |
tests: Fixed compilation errors for BadaSDK
git-svn-id: http://pugixml.googlecode.com/svn/trunk@839 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_parse.cpp')
-rw-r--r-- | tests/test_parse.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp index 2f66db9..9a8bdf1 100644 --- a/tests/test_parse.cpp +++ b/tests/test_parse.cpp @@ -443,10 +443,9 @@ TEST(parse_escapes_unicode) #ifdef PUGIXML_WCHAR_MODE const pugi::char_t* v = doc.child_value(STR("node")); - unsigned int v2 = v[2]; size_t wcharsize = sizeof(wchar_t); - CHECK(v[0] == 0x3b3 && v[1] == 0x3b3 && (wcharsize == 2 ? v[2] == 0xd852 && v[3] == 0xdf62 : v2 == 0x24b62)); + CHECK(v[0] == 0x3b3 && v[1] == 0x3b3 && (wcharsize == 2 ? v[2] == wchar_cast(0xd852) && v[3] == wchar_cast(0xdf62) : v[2] == wchar_cast(0x24b62))); #else CHECK_STRING(doc.child_value(STR("node")), "\xce\xb3\xce\xb3\xf0\xa4\xad\xa2"); #endif |