Fixed conditions for impossible code points 0xfffe and 0xffff

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@20 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2006-07-25 13:16:11 +00:00
parent 59fb926070
commit db36241cc1

View file

@ -172,7 +172,7 @@ namespace internal
break;
}
// Is the code point valid?
if (cp > CODE_POINT_MAX || is_surrogate(cp) || cp == 0xff || cp == 0xfe)
if (cp > CODE_POINT_MAX || is_surrogate(cp) || cp == 0xfffe || cp == 0xffff)
return INVALID_CODE_POINT;
if (code_point)