diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-18 02:50:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-18 02:50:21 +0000 |
commit | 53c1f3e4c67c9c049db970ffedda818f939035c7 (patch) | |
tree | e8a72774370b7e18212d84ec8424e65dc0ab5dcf /src/test.c | |
parent | 64b0b993f651ba31116ac2f258dece274898c676 (diff) | |
download | coreutils-53c1f3e4c67c9c049db970ffedda818f939035c7.tar.xz |
[member]: Don't cast index() to an int. That is wrong on systems with 64-bit
pointers.
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c index af64925b5..d1bc7ad28 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 (); |