Re: [committed] c-family: Add some more ARRAY_SIZE uses

2024-08-09 Thread Andrew Pinski
On Fri, Aug 9, 2024 at 12:39 AM Jakub Jelinek wrote: > > Hi! > > These two spots were just non-standard, because they divided > sizeof (omp_pragmas_simd) by sizeof (*omp_pragmas) and not > the expected sizeof (*omp_pragmas_simd) and so weren't converted > into ARRAY_SIZE. Both of the latter sizes

[committed] c-family: Add some more ARRAY_SIZE uses

2024-08-09 Thread Jakub Jelinek
Hi! These two spots were just non-standard, because they divided sizeof (omp_pragmas_simd) by sizeof (*omp_pragmas) and not the expected sizeof (*omp_pragmas_simd) and so weren't converted into ARRAY_SIZE. Both of the latter sizes are the same though, as both arrays have the same type, so this pa