summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-07 23:35:23 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-07 23:35:23 -0700
commit8ebab20fa572ac759e552802d7be23950f7c7c8d (patch)
treeff06cba0c9b4bad7444a754bd9237a2ab2f28e0c
parente51a1a38e8c3c90dd0b428f0b7fa5b6468d8e7c8 (diff)
Use correct type for lead in decode_utf16_block
This does not affect correctness but makes code more uniform.
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index bbad1c5..cc09067 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1678,7 +1678,7 @@ PUGI__NS_BEGIN
{
while (size)
{
- unsigned int lead = opt_swap::value ? endian_swap(*data) : *data;
+ uint16_t lead = opt_swap::value ? endian_swap(*data) : *data;
// U+0000..U+D7FF
if (lead < 0xD800)