diff src/share/vm/opto/graphKit.cpp @ 6846:377508648226

8000313: C2 should use jlong for 64bit values Summary: Replace all occurrences of long with jlong in C2 code. Reviewed-by: kvn, twisti
author vlivanov
date Mon, 08 Oct 2012 13:02:13 -0700
parents e626685e9f6c
children beebba0acc11
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp	Fri Oct 05 19:44:49 2012 -0700
+++ b/src/share/vm/opto/graphKit.cpp	Mon Oct 08 13:02:13 2012 -0700
@@ -1115,7 +1115,7 @@
   // short-circuit a common case
   jint offset_con = find_int_con(offset, Type::OffsetBot);
   if (offset_con != Type::OffsetBot) {
-    return longcon((long) offset_con);
+    return longcon((jlong) offset_con);
   }
   return _gvn.transform( new (C) ConvI2LNode(offset));
 }