Mercurial > hg > truffle
diff src/share/vm/utilities/globalDefinitions_sparcWorks.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 | d1605aabd0a1 |
children | 0fbdb4381b99 |
line wrap: on
line diff
--- a/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp Tue Dec 23 06:16:53 2008 -0800 +++ b/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp Wed Dec 24 13:06:09 2008 -0800 @@ -115,7 +115,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 some platforms. + #define NULL_WORD ((intptr_t)0) #endif #else #define NULL_WORD NULL