summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-11-09 21:42:56 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-11-09 21:42:56 -0800
commitc5223be4341ec8c679dad64c8c7bd3ce315d06cc (patch)
tree538d64c80cb95c4fe1f2022352890501b8c83d94
parent2d47cde5d6a2cf0aff885b19e5c2100389313481 (diff)
tests: Fix MSVC warnings
-rw-r--r--tests/test_write.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_write.cpp b/tests/test_write.cpp
index de77339..d5f3dad 100644
--- a/tests/test_write.cpp
+++ b/tests/test_write.cpp
@@ -613,12 +613,12 @@ TEST_XML_FLAGS(write_roundtrip, "<node><child1 attr1='value1' attr2='value2'/><c
const unsigned int flagset[] = { format_indent, format_raw, format_no_declaration, format_indent_attributes, format_no_empty_element_tags };
size_t flagcount = sizeof(flagset) / sizeof(flagset[0]);
- for (size_t i = 0; i < size_t(1 << flagcount); ++i)
+ for (size_t i = 0; i < (size_t(1) << flagcount); ++i)
{
unsigned int flags = 0;
for (size_t j = 0; j < flagcount; ++j)
- if (i & (1 << j))
+ if (i & (size_t(1) << j))
flags |= flagset[j];
std::string contents = write_narrow(doc, flags, encoding_utf8);