summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pccons.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-11-20 15:57:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-11-20 15:57:26 +0000
commitecd1eefababcba78141cf35e53ce1986f3041da8 (patch)
tree6a753b12df8dbc8d426b35ed136631986c0d11da /sys/arch/i386/isa/pccons.c
parent449e79b885b59db7893cf4f923168ccc0a9f7b8f (diff)
careful off handling in mmap routines
Diffstat (limited to 'sys/arch/i386/isa/pccons.c')
-rw-r--r--sys/arch/i386/isa/pccons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c
index f66652a2358..e55c868afa3 100644
--- a/sys/arch/i386/isa/pccons.c
+++ b/sys/arch/i386/isa/pccons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccons.c,v 1.41 1998/07/09 18:22:25 deraadt Exp $ */
+/* $OpenBSD: pccons.c,v 1.42 1998/11/20 15:57:25 deraadt Exp $ */
/* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */
/*-
@@ -1892,7 +1892,7 @@ pcmmap(dev, offset, nprot)
int nprot;
{
- if (offset > 0x20000)
+ if ((u_int)offset > 0x20000)
return -1;
return i386_btop(0xa0000 + offset);
}