diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-03-03 13:37:40 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-03-03 14:17:45 +0000 |
commit | 188f2deb6052433947fa12cc1326514999eb64b6 (patch) | |
tree | 2027fd7b21c00a4d3480d87cf1389da033b3c010 | |
parent | 262f1176fa652ba6dd65baec0a0cf8efc47351d9 (diff) |
cl-program-tester: Avoid void pointer arithmetic.
Although CL tests are not built with MSVC, this is the single instance
of void pointer arithmetic in them, so updating it to not use void
pointer arithmetic will enable us to use -Werror=pointer-arith option
universally in a follow on change.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | tests/cl/program/program-tester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c index 39056798f..314871a54 100644 --- a/tests/cl/program/program-tester.c +++ b/tests/cl/program/program-tester.c @@ -188,7 +188,7 @@ add_dynamic_array(void** array, free(old_array); } - memcpy((*array) + ((*count)*element_size), data, element_size); + memcpy((char *)(*array) + ((*count)*element_size), data, element_size); (*count)++; #undef GROW_SIZE } |