From: Jim Meyering Date: Mon, 18 Oct 1993 02:50:21 +0000 (+0000) Subject: [member]: Don't cast index() to an int. That is wrong on systems with 64-bit X-Git-Tag: textutils-1_12_1~835 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53c1f3e4c67c9c049db970ffedda818f939035c7;p=thirdparty%2Fcoreutils.git [member]: Don't cast index() to an int. That is wrong on systems with 64-bit pointers. --- diff --git a/src/test.c b/src/test.c index af64925b5a..d1bc7ad282 100644 --- a/src/test.c +++ b/src/test.c @@ -75,7 +75,7 @@ extern int errno; #endif /* !STREQ */ #if !defined (member) -# define member(c, s) (int)((c) ? index ((s), (c)) : 0) +# define member(c, s) ((c) ? (index ((s), (c)) ? 1 : 0) : 0) #endif /* !member */ extern gid_t getgid (), getegid ();