diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-10-04 06:54:19 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-10-04 06:54:19 +0000 |
commit | 9872f15d75a4e8940417c3ba56bc6361bd396944 (patch) | |
tree | 836b2972e52b0dac63bee909f3b040f6d4698f5c /sbin/dumpon/dumpon.c | |
parent | c233d032d202feb2d88d8a50c0608e02349cdd3d (diff) | |
download | src-9872f15d75a4e8940417c3ba56bc6361bd396944.tar.gz src-9872f15d75a4e8940417c3ba56bc6361bd396944.zip |
Promote mediasize and physmem to uintmax_t when comparing them.
Notes
Notes:
svn path=/head/; revision=136110
Diffstat (limited to 'sbin/dumpon/dumpon.c')
-rw-r--r-- | sbin/dumpon/dumpon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |