From 30d1ca27feff5c7dd42c20c3b3abcba48f2f3f44 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 27 Feb 2002 09:58:06 +0000 Subject: [PATCH] Re-fix a pointer/integer warning. --- sys/amd64/amd64/bios.c | 2 +- sys/i386/i386/bios.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c index 3d8f357ea19d..bf4b8a3bb5c4 100644 --- a/sys/amd64/amd64/bios.c +++ b/sys/amd64/amd64/bios.c @@ -380,7 +380,7 @@ bios16(struct bios_args *args, char *fmt, ...) args->seg.code32.limit = 0xffff; ptd = (u_int *)rcr3(); - if (ptd == IdlePTD) { + if (ptd == (u_int *)IdlePTD) { /* * no page table, so create one and install it. */ diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c index 3d8f357ea19d..bf4b8a3bb5c4 100644 --- a/sys/i386/i386/bios.c +++ b/sys/i386/i386/bios.c @@ -380,7 +380,7 @@ bios16(struct bios_args *args, char *fmt, ...) args->seg.code32.limit = 0xffff; ptd = (u_int *)rcr3(); - if (ptd == IdlePTD) { + if (ptd == (u_int *)IdlePTD) { /* * no page table, so create one and install it. */