mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
basic: fix size_t Wformat warnings (#2264)
Printing of a `size_t` requires the `%zu` specifier. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
9c5999bc1d
commit
ea934a7648
@@ -125,7 +125,7 @@ int test_imagearraycopy_single_format(cl_device_id device, cl_context context,
|
||||
{
|
||||
if (memcmp(&inchar[i], &outchar[i], elem_size) != 0)
|
||||
{
|
||||
log_error("%d(0x%x) -> expected [", i, i);
|
||||
log_error("%zu(0x%zx) -> expected [", i, i);
|
||||
for (size_t j = 0; j < elem_size; j++)
|
||||
log_error("0x%02x ", inchar[i + j]);
|
||||
log_error("] != actual [");
|
||||
|
||||
Reference in New Issue
Block a user