Avoid casting a different sized integer to a pointer on LP64 systems.
This commit is contained in:
parent
ca06fe5647
commit
9269daa2fb
@ -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
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user