Skip to content

Commit 0163143

Browse files
authored
Merge pull request #5278 from martin-frbg/fixup5276
Fix compilation with pre-C99 compilers
2 parents e2e6a4d + 20f2ba0 commit 0163143

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/level3/level3_thread.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, IFLOAT *sa, IF
852852
/* (n / nthreads_n) + (m / nthreads_m) */
853853
/* = (n * nthreads_m + m * nthreads_n) / (nthreads_n * nthreads_m) */
854854
BLASLONG cost = 0, div = 0;
855-
for (BLASLONG i = 1; i <= sqrt(nthreads_m); i++) {
855+
BLASLONG i;
856+
for (i = 1; i <= sqrt(nthreads_m); i++) {
856857
if (nthreads_m % i) continue;
857858
BLASLONG j = nthreads_m / i;
858859
BLASLONG cost_i = n * j + m * nthreads_n * i;

0 commit comments

Comments
 (0)