From 9e27b29fba08158ea646560dc2c0f671e17923cf Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 16 Aug 1998 01:21:52 +0000 Subject: Use [u]intptr_t instead of [u_]long for casts between pointers and integers. Don't forget to cast to (void *) as well. --- sys/pccard/pcic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pccard/pcic.c') diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index ff02b78..6bfd484 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -374,7 +374,7 @@ pcic_memory(struct slot *slt, int win) #endif /* PC98 */ if (mp->flags & MDF_ACTIVE) { - unsigned long sys_addr = (unsigned long)mp->start >> 12; + unsigned long sys_addr = (uintptr_t)(void *)mp->start >> 12; /* * Write the addresses, card offsets and length. * The values are all stored as the upper 12 bits of the -- cgit v1.1