Skip to content

Commit 418cf3e

Browse files
committed
Avoid explicit C99 requirement
1 parent d4408cc commit 418cf3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

c_src/state.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ static ERL_NIF_TERM apply_block(ErlNifEnv* env, int arc, const ERL_NIF_TERM argv
3737
enif_get_ulong(env, tuple[3], &v3);
3838
enif_get_ulong(env, argv[1], &m);
3939

40-
int c;
40+
int c, i;
4141

4242
enif_get_int(env, argv[2], &c);
4343

4444
v3 ^= m;
45-
for(int i = 0; i < c; i++){
45+
for(i = 0; i < c; i++){
4646
COMPRESS
4747
}
4848
v0 ^= m;
@@ -72,12 +72,12 @@ static ERL_NIF_TERM finalize(ErlNifEnv* env, int arc, const ERL_NIF_TERM argv[])
7272
enif_get_ulong(env, tuple[2], &v2);
7373
enif_get_ulong(env, tuple[3], &v3);
7474

75-
int d;
75+
int d, i;
7676

7777
enif_get_int(env, argv[1], &d);
7878

7979
v2 ^= 0xff;
80-
for(int i = 0; i < d; i++){
80+
for(i = 0; i < d; i++){
8181
COMPRESS
8282
}
8383

0 commit comments

Comments
 (0)