From ae25b713c6dac90b1c93c0e8a3b327866836148d Mon Sep 17 00:00:00 2001 From: John Birrell Date: Fri, 20 Feb 1998 04:57:33 +0000 Subject: [PATCH] Can't use ~0L to compare against a uint32. Use ~((uint32) 0) instead. --- usr.bin/file/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/file/print.c b/usr.bin/file/print.c index 758027ab4c9..5ccf07dc6af 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 @@ -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);