hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
changeset 1888 bbf498fb4354
parent 1 489c9b5090e2
child 2105 347008ce7984
--- a/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp	Tue Dec 23 06:16:53 2008 -0800
+++ b/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp	Wed Dec 24 13:06:09 2008 -0800
@@ -116,7 +116,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 platforms such as Mac OS X.
+    #define NULL_WORD  ((intptr_t)0)
   #endif
 #else
   #define NULL_WORD  NULL