From 63e16b5a37fe6e85bbaf6e4098088b05ce79a22a Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 10 May 2002 12:50:59 +0000 Subject: Avoid casting a different sized integer to a pointer on LP64 systems. --- lib/libc/stdlib/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index d2371bd..0d26f96 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -95,7 +95,7 @@ __FBSDID("$FreeBSD$"); #endif /* __FOOCPU__ && __BAROS__ */ #ifndef ZEROSIZEPTR -#define ZEROSIZEPTR ((void *)(1 << (malloc_pageshift - 1))) +#define ZEROSIZEPTR ((void *)(uintptr_t)(1 << (malloc_pageshift - 1))) #endif /* -- cgit v1.1