Mercurial > hg > truffle
diff src/share/vm/utilities/globalDefinitions_gcc.hpp @ 512:db4caa99ef11
6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t
Summary: Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms.
Reviewed-by: jrose, kvn
author | xlu |
---|---|
date | Wed, 24 Dec 2008 13:06:09 -0800 |
parents | a61af66fc99e |
children | 0fbdb4381b99 |
line wrap: on
line diff
--- a/src/share/vm/utilities/globalDefinitions_gcc.hpp Tue Dec 23 06:16:53 2008 -0800 +++ b/src/share/vm/utilities/globalDefinitions_gcc.hpp Wed Dec 24 13:06:09 2008 -0800 @@ -116,7 +116,9 @@ #ifdef _LP64 #define NULL_WORD 0L #else - #define NULL_WORD 0 + // Cast 0 to intptr_t rather than int32_t since they are not the same type + // on platforms such as Mac OS X. + #define NULL_WORD ((intptr_t)0) #endif #else #define NULL_WORD NULL