From: Jim Meyering Date: Wed, 4 Sep 2002 07:53:42 +0000 (+0000) Subject: (addext): Add a cast to avoid gcc's warning about X-Git-Tag: v4.5.2~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de684695820a2c43fc6f1e5f2f3aea37c49a9eec;p=thirdparty%2Fcoreutils.git (addext): Add a cast to avoid gcc's warning about `comparison between signed and unsigned'. --- diff --git a/lib/addext.c b/lib/addext.c index 571e3c2db4..f1eb0e05ac 100644 --- a/lib/addext.c +++ b/lib/addext.c @@ -1,5 +1,5 @@ /* addext.c -- add an extension to a file name - Copyright 1990, 1997, 1998, 1999, 2001 Free Software Foundation, Inc. + Copyright 1990, 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -83,7 +83,7 @@ addext (char *filename, char const *ext, int e) *s = c; } if (0 <= name_max || errno == 0) - slen_max = name_max == (size_t) name_max ? name_max : -1; + slen_max = name_max == (long) (size_t) name_max ? name_max : -1; } #endif