This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix -Wsign-compare in core
authorDavid Mitchell <davem@iabyn.com>
Fri, 29 Nov 2013 17:44:12 +0000 (17:44 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 29 Nov 2013 17:44:12 +0000 (17:44 +0000)
commit68067e4e501e2ae1c0fb44558b6aa5c0a80a4143
treea2432a1db7ff1c94fccdf6ba0fbb10f043ea9481
parent1534c6f5c3ecc70066a03d0b7df074bcd2e6f48c
fix -Wsign-compare in core

There were a few places that were doing

    unsigned_var = cond ? signed_val : unsigned_val;

or similar. Fixed by suitable casts etc.

The four in utf8.c were fixed by assigning to an intermediate
unsigned var; this has the happy side-effect of collapsing
a large macro expansion, where toUPPER_LC() etc evaluate their arg
multiple times.
handy.h
locale.c
utf8.c