From de684695820a2c43fc6f1e5f2f3aea37c49a9eec Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 4 Sep 2002 07:53:42 +0000 Subject: [PATCH] (addext): Add a cast to avoid gcc's warning about `comparison between signed and unsigned'. --- lib/addext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2