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:
parent
dd8d4ee975
commit
2be2d4eb1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue