We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b01f2fc commit 33e4e42Copy full SHA for 33e4e42
1 file changed
lunatik_core.c
@@ -73,8 +73,9 @@ static int lunatik_lcopyobjects(lua_State *L)
73
lua_State *Lfrom = (lua_State *)lua_touserdata(L, 1);
74
int ixfrom = lua_tointeger(L, 2);
75
int nobjects = lua_tointeger(L, 3);
76
+ int i;
77
- for (int i = 0; i < nobjects; i++) {
78
+ for (i = 0; i < nobjects; i++) {
79
lunatik_object_t *object = lunatik_testobject(Lfrom, ixfrom + i);
80
81
luaL_argcheck(L, object != NULL, i + 1, "invalid object");
0 commit comments