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
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue