Skip to content

Commit 33e4e42

Browse files
committed
get rid of loop initial declarations to support gnu89
1 parent b01f2fc commit 33e4e42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lunatik_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ static int lunatik_lcopyobjects(lua_State *L)
7373
lua_State *Lfrom = (lua_State *)lua_touserdata(L, 1);
7474
int ixfrom = lua_tointeger(L, 2);
7575
int nobjects = lua_tointeger(L, 3);
76+
int i;
7677

77-
for (int i = 0; i < nobjects; i++) {
78+
for (i = 0; i < nobjects; i++) {
7879
lunatik_object_t *object = lunatik_testobject(Lfrom, ixfrom + i);
7980

8081
luaL_argcheck(L, object != NULL, i + 1, "invalid object");

0 commit comments

Comments
 (0)