Fixed a bug with internal::validate_next. Was comparing the lead byte against 80 dec instead 0x80.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@16 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
parent
f7e5f04087
commit
9bf8c4ae63
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ namespace internal
|
|||
uint32_t cp = mask8(*it);
|
||||
// Check the lead octet
|
||||
size_t sequence_length;
|
||||
if (cp < 80)
|
||||
if (cp < 0x80)
|
||||
sequence_length = 1;
|
||||
else if ((cp >> 5) == 0x6)
|
||||
sequence_length = 2;
|
||||
|
|
Loading…
Reference in a new issue