]> granicus.if.org Git - nethack/commit
add '(uchar)' casts to ctype calls
authorPatR <rankin@nethack.org>
Tue, 19 Jul 2016 12:40:09 +0000 (05:40 -0700)
committerPatR <rankin@nethack.org>
Tue, 19 Jul 2016 12:40:09 +0000 (05:40 -0700)
commitd69f0787be29c7f02bee3ae4e9d6de23dfff0515
treea070567b2490e21b01a7971ec67761c8f31ae758
parent5713f92df151e35ec14fdce6af3d8bf6d3f57f6a
add '(uchar)' casts to ctype calls

This is from the pull request for the assertion failure fix.  It
did not mention how to reproduce the assertion failure, just added
casts to a bunch of isspace/isprint/tolower calls that didn't already
have such.

I removed an obsolete change for win/tty/topl.c and changed the
win/win32/mswproc.c code to avoid using an expression with side-effects
(*colorstring++) in calls to tolower() in case someone overrides that
with a macro which evaluates its argument more than once as some pre-
ANSI ones used to do.  Not tested, might have typos....

sys/wince/*.c still needs similar casts.
src/attrib.c
sys/share/pcsys.c
sys/winnt/nh340key.c
sys/winnt/nhdefkey.c
sys/winnt/nhraykey.c
sys/winnt/winnt.c
util/makedefs.c
win/share/tiletext.c
win/win32/mhmenu.c
win/win32/mhmsgwnd.c
win/win32/mswproc.c