brian m. carlson:

+               /* Check the value here */
+               if (codepoint >= 0xd800 && codepoint <= 0xdfff)
+                       return bad_offset;


if ((x & 0xFFFFF800) == 0xD800)

is slightly shorter, albeit a bit more difficult to read.

Please also consider adding some commentary as to what you are checking here, as it is not obvious unless you know Unicode well.

--
\\// Peter - http://www.softwolves.pp.se/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to