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:
parent
59fb926070
commit
db36241cc1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue