From cf2ba42b0296d6f9a62b010c2d80051d8cc8ed14 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 4 Oct 2004 06:54:19 +0000 Subject: [PATCH] Promote mediasize and physmem to uintmax_t when comparing them. --- sbin/dumpon/dumpon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 77aac33ab0c3..df6f88a7e632 100644 --- a/sbin/dumpon/dumpon.c +++ b/sbin/dumpon/dumpon.c @@ -79,7 +79,7 @@ check_size(int fd, const char *fn) err(EX_OSERR, "can't get memory size"); if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) != 0) err(EX_OSERR, "%s: can't get size", fn); - if (mediasize < physmem) { + if ((uintmax_t)mediasize < (uintmax_t)physmem) { if (verbose) printf("%s is smaller than physical memory\n", fn); exit(EX_IOERR);