harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r505025 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_drlvm_VMHelperFastPath.cpp
Date Thu, 08 Feb 2007 20:16:59 GMT
Author: gshimansky
Date: Thu Feb  8 12:16:58 2007
New Revision: 505025

URL: http://svn.apache.org/viewvc?view=rev&rev=505025
Log:
Fix compilation on gcc 4.1.1 on x86_64


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_drlvm_VMHelperFastPath.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_drlvm_VMHelperFastPath.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_drlvm_VMHelperFastPath.cpp?view=diff&rev=505025&r1=505024&r2=505025
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_drlvm_VMHelperFastPath.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_drlvm_VMHelperFastPath.cpp
Thu Feb  8 12:16:58 2007
@@ -58,12 +58,12 @@
 
 JNIEXPORT jint JNICALL Java_org_apache_harmony_drlvm_VMHelperFastPath_getVtableClassOffset(JNIEnv
*e, jclass c)
 {
-    return (jint)&((VTable*)0)->clss;
+    return static_cast<jint>(reinterpret_cast<jlong>(&((VTable*)0)->clss));
 }
 
 JNIEXPORT jint JNICALL Java_org_apache_harmony_drlvm_VMHelperFastPath_getVtableSuperclassesOffset(JNIEnv
*e, jclass c)
 {
-    return (jint)&((VTable*)0)->superclasses;
+    return static_cast<jint>(reinterpret_cast<jlong>(&((VTable*)0)->superclasses));
 }
 
 



Mime
View raw message