mirror of
https://github.com/lua/lua.git
synced 2025-07-04 07:03:24 +00:00
corrected warnings from different compilers (mostly casts and small
details)
This commit is contained in:
parent
1475cb59bf
commit
4590a89b32
9 changed files with 21 additions and 22 deletions
4
lua.c
4
lua.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lua.c,v 1.192 2010/07/25 15:03:37 roberto Exp roberto $
|
||||
** $Id: lua.c,v 1.193 2010/10/18 16:06:33 roberto Exp roberto $
|
||||
** Lua stand-alone interpreter
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -428,7 +428,7 @@ static int handle_luainit (lua_State *L) {
|
|||
|
||||
|
||||
static int pmain (lua_State *L) {
|
||||
int argc = lua_tointeger(L, 1);
|
||||
int argc = (int)lua_tointeger(L, 1);
|
||||
char **argv = (char **)lua_touserdata(L, 2);
|
||||
int script;
|
||||
int has_i = 0, has_v = 0, has_e = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue