mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
gl: Fix array size expression (#1610)
`sizes` is a pointer argument, so the expression does not compute the presumably intended number of elements in `sizes`. Fixes a `-Wsizeof-pointer-div` warning. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
paulfradgley
parent
dd8d4ee975
commit
2be2d4eb1d
@@ -786,7 +786,7 @@ int test_images_read_common(cl_device_id device, cl_context context,
|
||||
|
||||
// Note a successful format test, if we passed every size.
|
||||
|
||||
if (sidx == sizeof(sizes) / sizeof(sizes[0]))
|
||||
if (sidx == nsizes)
|
||||
{
|
||||
log_info("passed: Image read test for GL format %s : %s : %s "
|
||||
": %s\n\n",
|
||||
|
||||
Reference in New Issue
Block a user