Skip to content

Commit

Permalink
Merge "Switch from size_t -> uint32_t for dimensions array."
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhines authored and Gerrit Code Review committed Jun 24, 2014
2 parents 71dfc7e + bc5d3ee commit 924ed1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/jni/android_renderscript_RenderScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 924ed1f

Please sign in to comment.