summaryrefslogtreecommitdiff
path: root/rsScript.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-06-25 00:01:23 -0700
committerStephen Hines <srhines@google.com>2014-06-25 00:01:23 -0700
commitac8d146a41f18afad5314ac8af440d6aedbe20bf (patch)
treec2744c21c48b464ab70ee919ae32b0a6946f64a1 /rsScript.cpp
parentb31d9c956cc78b721e35bf74c96c7284e453f30f (diff)
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
Diffstat (limited to 'rsScript.cpp')
-rw-r--r--rsScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsScript.cpp b/rsScript.cpp
index 835ded1a..327e7d9c 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -252,7 +252,7 @@ void rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, siz
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);