diff src/cpu/x86/vm/bytecodeInterpreter_x86.inline.hpp @ 520:52a431267315

6791168: Fix invalid code in bytecodeInterpreter that can cause gcc ICE Summary: Fix compilation errors from latest gcc in CC_INTERP including offending missing void* cast. Reviewed-by: xlu
author coleenp
date Tue, 13 Jan 2009 14:41:44 -0500
parents a61af66fc99e
children 0fbdb4381b99
line wrap: on
line diff
--- a/src/cpu/x86/vm/bytecodeInterpreter_x86.inline.hpp	Fri Jan 09 14:39:07 2009 -0500
+++ b/src/cpu/x86/vm/bytecodeInterpreter_x86.inline.hpp	Tue Jan 13 14:41:44 2009 -0500
@@ -213,7 +213,7 @@
 
 inline jint BytecodeInterpreter::VMintDiv(jint op1, jint op2) {
   /* it's possible we could catch this special case implicitly */
-  if (op1 == 0x80000000 && op2 == -1) return op1;
+  if ((juint)op1 == 0x80000000 && op2 == -1) return op1;
   else return op1 / op2;
 }
 
@@ -231,7 +231,7 @@
 
 inline jint BytecodeInterpreter::VMintRem(jint op1, jint op2) {
   /* it's possible we could catch this special case implicitly */
-  if (op1 == 0x80000000 && op2 == -1) return 0;
+  if ((juint)op1 == 0x80000000 && op2 == -1) return 0;
   else return op1 % op2;
 }