Skip to content

Commit

Permalink
use a different variable name for nested loop in bench.c (#80)
Browse files Browse the repository at this point in the history
and declare it ahead of time to avoid "error: 'for' loop initial declarations are only allowed in C99 mode"
  • Loading branch information
tkelman authored and stevengj committed Jul 26, 2016
1 parent 47cbf7d commit 0bf1973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

int main(int argc, char **argv)
{
int i;
int i, j;
int options = 0;

for (i = 1; i < argc; ++i) {
Expand Down Expand Up @@ -44,7 +44,7 @@ int main(int argc, char **argv)
}
uint8_t *dest;
mytime start = gettime();
for (int i = 0; i < 100; ++i) {
for (j = 0; j < 100; ++j) {
utf8proc_map(src, len, &dest, options);
free(dest);
}
Expand Down

0 comments on commit 0bf1973

Please sign in to comment.