Fixed a problem in find_invalid : reporting some valid code points as invalid.

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@18 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2006-07-24 11:37:56 +00:00
parent 37856e785c
commit 3dfa478146

View file

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