summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2013-07-10 15:29:36 -0700
committerJeff Hao <jeffhao@google.com>2013-07-10 15:29:36 -0700
commit534f2b6f430c7984fda9333f8e72b37962b144b4 (patch)
treee7d524ddf7b24f57cb190d9bb728a7ce4d79a21b
parent5ece45186e4648ab38afbe86a71d8fff16bb1f57 (diff)
downloadart-534f2b6f430c7984fda9333f8e72b37962b144b4.zip
art-534f2b6f430c7984fda9333f8e72b37962b144b4.tar.gz
art-534f2b6f430c7984fda9333f8e72b37962b144b4.tar.bz2
Fix GetDirectBufferrAddress to use GetLongField.
The return type of this was recently changed from int to long. Change-Id: Ia9e5356b53fb3bf0f83190e42023ec56ad2bff54
-rw-r--r--src/jni_internal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jni_internal.cc b/src/jni_internal.cc
index cbdf3cd..c6047cd 100644
--- a/src/jni_internal.cc
+++ b/src/jni_internal.cc
@@ -2169,7 +2169,7 @@ class JNI {
}
static void* GetDirectBufferAddress(JNIEnv* env, jobject java_buffer) {
- return reinterpret_cast<void*>(env->GetIntField(java_buffer, WellKnownClasses::java_nio_DirectByteBuffer_effectiveDirectAddress));
+ return reinterpret_cast<void*>(env->GetLongField(java_buffer, WellKnownClasses::java_nio_DirectByteBuffer_effectiveDirectAddress));
}
static jlong GetDirectBufferCapacity(JNIEnv* env, jobject java_buffer) {