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 -
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to