mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-21 23:24:19 +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:
parent
e51a1a38e8
commit
8ebab20fa5
@ -1678,7 +1678,7 @@ PUGI__NS_BEGIN
|
|||||||
{
|
{
|
||||||
while (size)
|
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
|
// U+0000..U+D7FF
|
||||||
if (lead < 0xD800)
|
if (lead < 0xD800)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user