mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
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:
parent
d80f5c0265
commit
1362b9fd1d
14 changed files with 61 additions and 57 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue