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:
Sven van Haastregt
2023-03-03 13:29:29 +00:00
committed by GitHub
parent 33285facbe
commit 712eb4f988

View File

@@ -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",