brian m. carlson:
int offset = 0;
+ static const unsigned int max_codepoint[] = {
+ 0x7f, 0x7ff, 0xffff, 0x1fffff
+ };
Since Unicode is not defined beyond U+10FFFF, you can easily make the
last range end at U+10FFF. Doing that, ...
if (codepoint > 0x10ffff)
return bad_offset;
... you can also drop this test, as it will have been tested by the
max test already.
--
\\// Peter - http://www.softwolves.pp.se/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html