fix ctype macros to cast argument to (unsigned) first
authorRich Felker <dalias@aerifal.cx>
Mon, 26 Sep 2011 22:56:56 +0000 (18:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 26 Sep 2011 22:56:56 +0000 (18:56 -0400)
commit7e14ed1360c65b78c3ad1fc4fafea13e30067478
treea8fc0c6d5245613962765857df15aa75acbafc64
parent3bec53e0d3bb5e74d2e2dca34f50aadfaf832607
fix ctype macros to cast argument to (unsigned) first

issue reported by nsz, but it's actually not just pedantic. the
functions can take input of any arithmetic type, including floating
point, and the behavior needs to be as if the conversion implicit in
the function call took place.
include/ctype.h
include/wctype.h