diff --git a/source/utf8/checked.h b/source/utf8/checked.h index ecac556..ddf50b3 100644 --- a/source/utf8/checked.h +++ b/source/utf8/checked.h @@ -120,15 +120,12 @@ namespace utf8 *(result++) = static_cast(((cp >> 6) & 0x3f) | 0x80); *(result++) = static_cast((cp & 0x3f) | 0x80); } - else if (cp <= internal::CODE_POINT_MAX) { // four octets + else { // four octets *(result++) = static_cast((cp >> 18) | 0xf0); *(result++) = static_cast(((cp >> 12) & 0x3f) | 0x80); *(result++) = static_cast(((cp >> 6) & 0x3f) | 0x80); *(result++) = static_cast((cp & 0x3f) | 0x80); } - else - throw invalid_code_point(cp); - return result; }