diff options
| author | lukem <lukem@NetBSD.org> | 2009-04-13 00:07:26 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2009-04-13 00:07:26 +0000 |
| commit | 1e4c32c4f59adead6f530a4b611fcab49a048a73 (patch) | |
| tree | 0f3221c2d2f02e2bd63e87e20c023eac082d517c /usr.bin/patch | |
| parent | b278226e334476dd984ae4d6e386138376ad4d7c (diff) | |
Fix sign-compare issue
Diffstat (limited to 'usr.bin/patch')
| -rw-r--r-- | usr.bin/patch/inp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/inp.c b/usr.bin/patch/inp.c index 7bb2de11049..0aa849909c7 100644 --- a/usr.bin/patch/inp.c +++ b/usr.bin/patch/inp.c @@ -1,7 +1,7 @@ /* * $OpenBSD: inp.c,v 1.34 2006/03/11 19:41:30 otto Exp $ * $DragonFly: src/usr.bin/patch/inp.c,v 1.6 2007/09/29 23:11:10 swildner Exp $ - * $NetBSD: inp.c,v 1.19 2008/09/19 18:33:34 joerg Exp $ + * $NetBSD: inp.c,v 1.20 2009/04/13 00:07:26 lukem Exp $ */ /* @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: inp.c,v 1.19 2008/09/19 18:33:34 joerg Exp $"); +__RCSID("$NetBSD: inp.c,v 1.20 2009/04/13 00:07:26 lukem Exp $"); #include <sys/types.h> #include <sys/file.h> @@ -253,7 +253,7 @@ plan_a(const char *filename) out_of_mem = false; return false; /* force plan b because plan a bombed */ } - if (i_size > SIZE_MAX) { + if (i_size > (off_t)SIZE_MAX) { say("block too large to mmap\n"); return false; } |
