From 4590a89b32b62c75fca7ced96c282c7793b8885c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Oct 2010 17:01:37 -0200 Subject: corrected warnings from different compilers (mostly casts and small details) --- liolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 78ddb806..9c148285 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.90 2010/07/25 15:18:19 roberto Exp roberto $ +** $Id: liolib.c,v 2.91 2010/07/28 15:51:59 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -453,7 +453,7 @@ static int f_read (lua_State *L) { static int io_readline (lua_State *L) { FILE *f = *(FILE **)lua_touserdata(L, lua_upvalueindex(1)); int i; - int n = lua_tointeger(L, lua_upvalueindex(2)); + int n = (int)lua_tointeger(L, lua_upvalueindex(2)); if (f == NULL) /* file is already closed? */ luaL_error(L, "file is already closed"); lua_settop(L , 1); -- cgit v1.2.3-55-g6feb