From 08e6f5523cd45c2400a573775871b4b724da4cbf Mon Sep 17 00:00:00 2001 From: James Youngman Date: Wed, 24 Nov 2004 13:58:32 +0000 Subject: [PATCH] avoid signed/unsigned warning, and #include xalloc.h --- find/parser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/find/parser.c b/find/parser.c index cfdbdf3f..7a611608 100644 --- a/find/parser.c +++ b/find/parser.c @@ -25,6 +25,7 @@ #include "../gnulib/lib/modechange.h" #include "modetype.h" #include "../gnulib/lib/xstrtol.h" +#include "../gnulib/lib/xalloc.h" #if ENABLE_NLS @@ -47,8 +48,8 @@ #define isascii(c) 1 #endif -#define ISDIGIT(c) (isascii (c) && isdigit (c)) -#define ISUPPER(c) (isascii (c) && isupper (c)) +#define ISDIGIT(c) (isascii ((unsigned char)c) && isdigit ((unsigned char)c)) +#define ISUPPER(c) (isascii ((unsigned char)c) && isupper ((unsigned char)c)) #ifndef HAVE_ENDGRENT #define endgrent()