1.1 --- a/src/share/vm/utilities/globalDefinitions_gcc.hpp Tue Dec 23 06:16:53 2008 -0800 1.2 +++ b/src/share/vm/utilities/globalDefinitions_gcc.hpp Wed Dec 24 13:06:09 2008 -0800 1.3 @@ -116,7 +116,9 @@ 1.4 #ifdef _LP64 1.5 #define NULL_WORD 0L 1.6 #else 1.7 - #define NULL_WORD 0 1.8 + // Cast 0 to intptr_t rather than int32_t since they are not the same type 1.9 + // on platforms such as Mac OS X. 1.10 + #define NULL_WORD ((intptr_t)0) 1.11 #endif 1.12 #else 1.13 #define NULL_WORD NULL