diff options
author | peter <peter@FreeBSD.org> | 2002-05-10 12:50:59 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-05-10 12:50:59 +0000 |
commit | 63e16b5a37fe6e85bbaf6e4098088b05ce79a22a (patch) | |
tree | c0f3466687c3ca8fd643236a1bf0cadf0eb16852 /lib | |
parent | 8dc69a6709017b6a6bd8fd7a4c7e349d92cd532c (diff) | |
download | FreeBSD-src-63e16b5a37fe6e85bbaf6e4098088b05ce79a22a.zip FreeBSD-src-63e16b5a37fe6e85bbaf6e4098088b05ce79a22a.tar.gz |
Avoid casting a different sized integer to a pointer on LP64 systems.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 2 |
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 /* |