utf8.h: Need to make sure macro result fits in byte
authorKarl Williamson <public@khwilliamson.com>
Fri, 3 Dec 2010 16:15:59 +0000 (09:15 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 4 Dec 2010 19:48:57 +0000 (11:48 -0800)
commit0072151e81aec9c504f2be93f0562f270ffac2c8
tree3836518c256d33829ac94e695d5cce8cb77d0840
parent14c287842e05fc65fd5d35b6ce06734e2fa161bc
utf8.h: Need to make sure macro result fits in byte

The UTF8_TWO_BYTE_HI_nocast() macro has an error in it, in that the
START_MARK is larger than a byte, and only the last 8 bits of it are
relevant.  This hasn't caused a problem because the macro hasn't been
called directly, but from other macros that make sure the result gets
cast to a U8.
utf8.h