0
0
mirror of https://github.com/zeux/pugixml.git synced 2025-01-14 01:47:55 +08:00

tests: Fix MSVC warnings

This commit is contained in:
Arseny Kapoulkine 2016-11-09 21:42:56 -08:00
parent 2d47cde5d6
commit c5223be434

View File

@ -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);