--- hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp.orig	2010-10-28 04:29:34.000000000 +0800
+++ hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp	2010-10-28 04:29:35.000000000 +0800
@@ -129,9 +129,7 @@
   #ifdef _LP64
     #define NULL_WORD  0L
   #else
-    // Cast 0 to intptr_t rather than int32_t since they are not the same type
-    // on platforms such as Mac OS X.
-    #define NULL_WORD  ((intptr_t)0)
+    #define NULL_WORD  0
   #endif
 #else
   #define NULL_WORD  NULL
