mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Added gcc option '-Wconversion'
No warnings for standard numerical types. Still pending alternative numerical types.
This commit is contained in:
parent
15231d4fb2
commit
0acd55898d
44 changed files with 398 additions and 359 deletions
2
lua.c
2
lua.c
|
|
@ -185,7 +185,7 @@ static void print_version (void) {
|
|||
static void createargtable (lua_State *L, char **argv, int argc, int script) {
|
||||
int i, narg;
|
||||
narg = argc - (script + 1); /* number of positive indices */
|
||||
lua_createtable(L, narg, script + 1);
|
||||
lua_createtable(L, cast_uint(narg), cast_uint(script + 1));
|
||||
for (i = 0; i < argc; i++) {
|
||||
lua_pushstring(L, argv[i]);
|
||||
lua_rawseti(L, -2, i - script);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue