summaryrefslogtreecommitdiff
path: root/utests/enqueue_copy_buf_unaligned.cpp
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2016-05-06 00:11:49 +0800
committerYang Rong <rong.r.yang@intel.com>2016-05-23 18:07:25 +0800
commite97a147d881e35f90a2958d42bce98dbde300559 (patch)
treeb12db48a0d81c75d9fdfff8a95a086b7196deb24 /utests/enqueue_copy_buf_unaligned.cpp
parentddea2757ea3ff9b569e30fd6ce8c10b0bb06a623 (diff)
downloadbeignet-e97a147d881e35f90a2958d42bce98dbde300559.tar.gz
utest: init uninitialized local variables.
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/enqueue_copy_buf_unaligned.cpp')
-rw-r--r--utests/enqueue_copy_buf_unaligned.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/enqueue_copy_buf_unaligned.cpp b/utests/enqueue_copy_buf_unaligned.cpp
index e1bd0aaf..f501d29a 100644
--- a/utests/enqueue_copy_buf_unaligned.cpp
+++ b/utests/enqueue_copy_buf_unaligned.cpp
@@ -77,7 +77,7 @@ void enqueue_copy_buf_unaligned(void)
size_t i;
size_t j;
const size_t sz = 1024;
- int offset = 0;
+ unsigned int offset = 0;
OCL_CREATE_BUFFER(buf[0], 0, sz * sizeof(char), NULL);
OCL_CREATE_BUFFER(buf[1], 0, sz * sizeof(char), NULL);