OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71dfc7e
)
Switch from size_t -> uint32_t for dimensions array.
author
Stephen Hines
<srhines@google.com>
Wed, 25 Jun 2014 07:03:39 +0000
(
00:03
-0700)
committer
Stephen Hines
<srhines@google.com>
Wed, 25 Jun 2014 07:03:39 +0000
(
00:03
-0700)
Change-Id: I159586e98dd47be9b9f5db0f3e27d1072533134c
rs/jni/android_renderscript_RenderScript.cpp
patch
|
blob
|
history
diff --git
a/rs/jni/android_renderscript_RenderScript.cpp
b/rs/jni/android_renderscript_RenderScript.cpp
index
af2e3bf
..
5fe631b
100644
(file)
--- a/
rs/jni/android_renderscript_RenderScript.cpp
+++ b/
rs/jni/android_renderscript_RenderScript.cpp
@@
-1054,7
+1054,7
@@
nScriptSetVarVE(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot,
jint dimsLen = _env->GetArrayLength(dims) * sizeof(int);
jint *dimsPtr = _env->GetIntArrayElements(dims, NULL);
rsScriptSetVarVE((RsContext)con, (RsScript)script, slot, ptr, len, (RsElement)elem,
- (const
size
_t*) dimsPtr, dimsLen);
+ (const
uint32
_t*) dimsPtr, dimsLen);
_env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
_env->ReleaseIntArrayElements(dims, dimsPtr, JNI_ABORT);
}