Switch the dimensions array to use uint32_t instead of size_t.
size_t isn't safe, since we pack/unpack the array as a 32-bit int array, but
that is the wrong type for 64-bit. Switching to uint32_t is better, since we
only support 1 dimension today, and won't need many more than that even for
complex cases in the future.
Change-Id: Ie0dda264a9398b0e385e0f9ee0a91cda08325dbc
diff --git a/rsScript.cpp b/rsScript.cpp
index 835ded1..327e7d9 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -252,7 +252,7 @@
void rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot,
const void *data, size_t len, RsElement ve,
- const size_t *dims, size_t dimLen) {
+ const uint32_t *dims, size_t dimLen) {
Script *s = static_cast<Script *>(vs);
Element *e = static_cast<Element *>(ve);
s->setVar(slot, data, len, e, dims, dimLen);