diff options
author | Stephen Hines <srhines@google.com> | 2014-06-25 00:01:23 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-06-25 00:01:23 -0700 |
commit | ac8d146a41f18afad5314ac8af440d6aedbe20bf (patch) | |
tree | c2744c21c48b464ab70ee919ae32b0a6946f64a1 /cpu_ref/rsd_cpu.h | |
parent | b31d9c956cc78b721e35bf74c96c7284e453f30f (diff) | |
download | rs-ac8d146a41f18afad5314ac8af440d6aedbe20bf.tar.gz |
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 'cpu_ref/rsd_cpu.h')
-rw-r--r-- | cpu_ref/rsd_cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu_ref/rsd_cpu.h b/cpu_ref/rsd_cpu.h index ac4cf31e..675bb97a 100644 --- a/cpu_ref/rsd_cpu.h +++ b/cpu_ref/rsd_cpu.h @@ -81,7 +81,7 @@ public: virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) = 0; virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength) = 0; virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength, - const Element *e, const size_t *dims, size_t dimLength) = 0; + const Element *e, const uint32_t *dims, size_t dimLength) = 0; virtual void setGlobalBind(uint32_t slot, Allocation *data) = 0; virtual void setGlobalObj(uint32_t slot, ObjectBase *obj) = 0; |