diff options
author | jb <jb@FreeBSD.org> | 1998-02-20 04:57:33 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-02-20 04:57:33 +0000 |
commit | eb649fea4a5018291ea1862c5f3c52c5395dce41 (patch) | |
tree | 0ffa7e5cb7ab65d0701cc01fa849e69873a149d4 /usr.bin/file | |
parent | bc76bfde94583c3eaf95a4e2ba07944e5d189c2a (diff) | |
download | FreeBSD-src-eb649fea4a5018291ea1862c5f3c52c5395dce41.zip FreeBSD-src-eb649fea4a5018291ea1862c5f3c52c5395dce41.tar.gz |
Can't use ~0L to compare against a uint32. Use ~((uint32) 0) instead.
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/file/print.c b/usr.bin/file/print.c index 758027a..5ccf07d 100644 --- a/usr.bin/file/print.c +++ b/usr.bin/file/print.c @@ -27,7 +27,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: print.c,v 1.7 1998/01/28 07:36:25 charnier Exp $"; #endif /* not lint */ #include <err.h> @@ -66,7 +66,7 @@ struct magic *m; (m->type >= 0 && m->type < SZOF(typ)) ? typ[(unsigned char) m->type] : "*bad*"); - if (m->mask != ~0L) + if (m->mask != ~((uint32) 0)) (void) fprintf(stderr, " & %.8x", m->mask); (void) fprintf(stderr, ",%c", m->reln); |