]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(addext): Add a cast to avoid gcc's warning about
authorJim Meyering <jim@meyering.net>
Wed, 4 Sep 2002 07:53:42 +0000 (07:53 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 4 Sep 2002 07:53:42 +0000 (07:53 +0000)
`comparison between signed and unsigned'.

lib/addext.c

index 571e3c2db4c643fe80f7c09e37fc6c1f28bee63f..f1eb0e05acd5cd23f5e0145a27bd37769d39c3c9 100644 (file)
@@ -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