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/driver/rsdBcc.cpp b/driver/rsdBcc.cpp
index 212184e..60532df 100644
--- a/driver/rsdBcc.cpp
+++ b/driver/rsdBcc.cpp
@@ -117,7 +117,7 @@
void rsdScriptSetGlobalVarWithElemDims(const Context *dc, const Script *s,
uint32_t slot, void *data, size_t dataLength,
const android::renderscript::Element *elem,
- const size_t *dims, size_t dimLength) {
+ const uint32_t *dims, size_t dimLength) {
RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv;
cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength);
}