summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-05-10 12:50:59 +0000
committerpeter <peter@FreeBSD.org>2002-05-10 12:50:59 +0000
commit63e16b5a37fe6e85bbaf6e4098088b05ce79a22a (patch)
treec0f3466687c3ca8fd643236a1bf0cadf0eb16852
parent8dc69a6709017b6a6bd8fd7a4c7e349d92cd532c (diff)
downloadFreeBSD-src-63e16b5a37fe6e85bbaf6e4098088b05ce79a22a.zip
FreeBSD-src-63e16b5a37fe6e85bbaf6e4098088b05ce79a22a.tar.gz
Avoid casting a different sized integer to a pointer on LP64 systems.
-rw-r--r--lib/libc/stdlib/malloc.c2
1 files changed, 1 insertions, 1 deletions
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
/*
OpenPOWER on IntegriCloud