This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toupper/lower: avoid sign warnings
authorDavid Mitchell <davem@iabyn.com>
Tue, 16 Dec 2014 12:20:25 +0000 (12:20 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 16 Dec 2014 12:20:25 +0000 (12:20 +0000)
commitd2a8cf7fc095c0e78d7c38d5d360555ff37c24b7
tree5e12b3cbe1e3b5f168cdb20e83e3799287ffcdaa
parentdc5c2addf88baf2341663222a7ef79d1b8df8429
toupper/lower: avoid sign warnings

Perl's toLOWER_LC() etc macros are specified as having U8 arg and return,
while the underlying macro may call the OS's tolower() function which is
int. Stop the compiler warning about mismatched sign in conditional by
casting the result of the OS function.
handy.h