From: Jim Meyering Date: Sun, 15 Sep 2002 07:23:08 +0000 (+0000) Subject: (get_format_width): Add cast to avoid X-Git-Tag: v4.5.2~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c8df3d37c05d00d1dbc0d87b566f837a7db941;p=thirdparty%2Fcoreutils.git (get_format_width): Add cast to avoid warning about `signed and unsigned type in conditional expression'. --- diff --git a/src/csplit.c b/src/csplit.c index f8c179368e..df8546d7a4 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1249,7 +1249,7 @@ get_format_width (char **format_ptr) allow for enough octal digits to represent the value of LONG_MAX. */ count = ((*format_ptr == start) ? bytes_to_octal_digits[sizeof (long)] - : atoi (start)); + : (unsigned) atoi (start)); **format_ptr = ch_save; return count; }