mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +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
GitHub
parent
33285facbe
commit
712eb4f988
@@ -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.
|
// 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 "
|
log_info("passed: Image read test for GL format %s : %s : %s "
|
||||||
": %s\n\n",
|
": %s\n\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user