6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t

Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms.

Reviewed-by: jrose, kvn
This commit is contained in:
Xiaobin Lu 2008-12-24 13:06:09 -08:00
parent d80f5c0265
commit 1362b9fd1d
14 changed files with 61 additions and 57 deletions

View file

@ -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