From 3471b508ba4da21a00eb5b42d0e64dfa368d2550 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 3 May 2002 13:58:12 +0000 Subject: no guarantee that ptrdiff_t is int and not long, so cast. ok mickey@ --- sys/arch/i386/stand/libsa/memprobe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/i386/stand') diff --git a/sys/arch/i386/stand/libsa/memprobe.c b/sys/arch/i386/stand/libsa/memprobe.c index ade44eccda6..e987c284262 100644 --- a/sys/arch/i386/stand/libsa/memprobe.c +++ b/sys/arch/i386/stand/libsa/memprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memprobe.c,v 1.35 2002/02/15 19:55:15 mickey Exp $ */ +/* $OpenBSD: memprobe.c,v 1.36 2002/05/03 13:58:11 espie Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -360,8 +360,9 @@ dump_biosmem(tm) tm = bios_memmap; for(p = tm; p->type != BIOS_MAP_END; p++) { - printf("Region %d: type %u at 0x%x for %uKB\n", p - tm, - p->type, (u_int)p->addr, (u_int)(p->size / 1024)); + printf("Region %ld: type %u at 0x%x for %uKB\n", + (long)(p - tm), p->type, (u_int)p->addr, + (u_int)(p->size / 1024)); if(p->type == BIOS_MAP_FREE) total += p->size / 1024; -- cgit v1.2.3