diff --git a/v2_0/doc/ReleaseNotes b/v2_0/doc/ReleaseNotes index c7e54b3..364411a 100644 --- a/v2_0/doc/ReleaseNotes +++ b/v2_0/doc/ReleaseNotes @@ -1,8 +1,10 @@ utf8 cpp library -Release 2.3.3 +Release 2.3.4 A minor bug fix release. Thanks to all who reported bugs. +Note: Version 2.3.3 contained a regression, and therefore was removed. + Changes from version 2.3.2 - Bug fix [39]: checked.h Line 273 and unchecked.h Line 182 have an extra ';' - Bug fix [36]: replace_invalid() only works with back_inserter diff --git a/v2_0/source/utf8/checked.h b/v2_0/source/utf8/checked.h index cc1ec47..1331155 100644 --- a/v2_0/source/utf8/checked.h +++ b/v2_0/source/utf8/checked.h @@ -233,7 +233,7 @@ namespace utf8 template u16bit_iterator utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result) { - while (start < end) { + while (start != end) { uint32_t cp = utf8::next(start, end); if (cp > 0xffff) { //make a surrogate pair *result++ = static_cast((cp >> 10) + internal::LEAD_OFFSET); @@ -257,7 +257,7 @@ namespace utf8 template u32bit_iterator utf8to32 (octet_iterator start, octet_iterator end, u32bit_iterator result) { - while (start < end) + while (start != end) (*result++) = utf8::next(start, end); return result;