diff options
Diffstat (limited to 'lua.c')
| -rw-r--r-- | lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -185,7 +185,7 @@ static void print_version (void) { | |||
| 185 | static void createargtable (lua_State *L, char **argv, int argc, int script) { | 185 | static void createargtable (lua_State *L, char **argv, int argc, int script) { |
| 186 | int i, narg; | 186 | int i, narg; |
| 187 | narg = argc - (script + 1); /* number of positive indices */ | 187 | narg = argc - (script + 1); /* number of positive indices */ |
| 188 | lua_createtable(L, narg, script + 1); | 188 | lua_createtable(L, cast_uint(narg), cast_uint(script + 1)); |
| 189 | for (i = 0; i < argc; i++) { | 189 | for (i = 0; i < argc; i++) { |
| 190 | lua_pushstring(L, argv[i]); | 190 | lua_pushstring(L, argv[i]); |
| 191 | lua_rawseti(L, -2, i - script); | 191 | lua_rawseti(L, -2, i - script); |
