changeset 1888 | bbf498fb4354 |
parent 670 | ddf3e9583f2f |
child 2105 | 347008ce7984 |
--- a/hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp Tue Dec 23 06:16:53 2008 -0800 +++ b/hotspot/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