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

Use correct type for lead in decode_utf16_block

This does not affect correctness but makes code more uniform.
This commit is contained in:
Arseny Kapoulkine 2015-10-07 23:35:23 -07:00
parent e51a1a38e8
commit 8ebab20fa5

View File

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