From 022e6c7a5bf7a2046a0540022c5aab999d7d7cf4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 10 Jan 2015 15:06:17 +0100 Subject: Fixed LUA compile --- 3rdparty/lua/src/liolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '3rdparty/lua/src/liolib.c') diff --git a/3rdparty/lua/src/liolib.c b/3rdparty/lua/src/liolib.c index 2a4ec4aa344..ab89e3508f4 100644 --- a/3rdparty/lua/src/liolib.c +++ b/3rdparty/lua/src/liolib.c @@ -556,7 +556,7 @@ static int f_seek (lua_State *L) { if (op) return luaL_fileresult(L, 0, NULL); /* error */ else { - lua_pushnumber(L, (lua_Number)l_ftell(f)); + lua_pushnumber(L, (lua_Number)(1.0 * l_ftell(f))); return 1; } } -- cgit v1.2.3-70-g09d2