3 Jul
2004
3 Jul
'04
06:14
Mark Horton wrote:
I rceived the following warning when compiling the latest php:
Zend/zend_compile.c:71: warning: cast from pointer to integer of different size
From what I recall this can cause undefined behavior. Or can this warning be safely ignored? I looked at the source and it's casting a void* to an int, which I'm guessing is not correct on 64-bit.
Mark
void* is either 5 or 6 bits in AMD64, so casting to an int could be problematic, but only for some (large, which would overflow an int) addresses .... probably spooky, I would look into it.