diff -r 0ed88ac17540 -r bbf498fb4354 hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp --- 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