This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make sure isCNTRL and isASCII work on signed chars
authorKarl Williamson <khw@khw-desktop.(none)>
Tue, 20 Apr 2010 02:05:31 +0000 (20:05 -0600)
committerRafael Garcia-Suarez <rgs@consttype.org>
Mon, 26 Apr 2010 08:20:09 +0000 (10:20 +0200)
commit353c9b6f16dec626f888894e7df6f8819303bd11
tree1dafddd3bb9a82a2f00f56b4c776e1095c371c20
parenteae68503d2ac04e4cb67e7304895150dea94c348
Make sure isCNTRL and isASCII work on signed chars

Prior to this patch, there is a potential bug in these two macros, in
which, if they are called with a signed character outside the ASCII
range, it will be negative and they always returned true for negative.
Casting the parameter to an unsigned should fix that by having it be
interpreted as a number above the ASCII range.
handy.h