OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a213ec
)
Fix a cast in JniEnv::NewDirectByteBuffer.
author
Elliott Hughes
<enh@google.com>
Sat, 30 Mar 2013 00:27:28 +0000
(17:27 -0700)
committer
Elliott Hughes
<enh@google.com>
Sat, 30 Mar 2013 00:27:28 +0000
(17:27 -0700)
Change-Id: I8692b31c6ce64efc68124df02117b6e4529dfe98
vm/Jni.cpp
patch
|
blob
|
history
diff --git
a/vm/Jni.cpp
b/vm/Jni.cpp
index
f235835
..
e571ad8
100644
(file)
--- a/
vm/Jni.cpp
+++ b/
vm/Jni.cpp
@@
-2739,7
+2739,7
@@
static jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity) {
jobject result = addLocalReference(ts.self(), newObj);
JValue unused;
dvmCallMethod(ts.self(), gDvm.methJavaNioDirectByteBuffer_init,
- newObj, &unused, (j
int
) address, (jint) capacity);
+ newObj, &unused, (j
long
) address, (jint) capacity);
if (dvmGetException(ts.self()) != NULL) {
deleteLocalReference(ts.self(), result);
return NULL;