Skip to content

Commit ecc49b9

Browse files
daviesrobjkbonfield
authored andcommitted
Allow builds on old gcc's that don't like declarations in for loops
1 parent e6197d6 commit ecc49b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

htscodecs/rANS_static32x16pr_avx512.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ unsigned char *rans_compress_O1_32x16_avx512(unsigned char *in,
658658
// transpose matrix from 32xBATCH to BATCHx32
659659
for (j = 0; j < 32; j++) {
660660
for (i = 0; i < BATCH; i+=16) {
661-
for (int z = 0; z < 16; z++)
661+
int z;
662+
for (z = 0; z < 16; z++)
662663
t32[i+z][j] = c[j][i+z];
663664
}
664665
}

0 commit comments

Comments
 (0)