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:
ntrifunovic 2006-07-20 16:18:30 +00:00
parent f7e5f04087
commit 9bf8c4ae63

View file

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