From 798660c9cddef8a73f68058576e3d47eed2b1a27 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 1 Oct 2014 08:54:56 -0300 Subject: deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 43f10d7e..59e529cb 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.107 2014/07/17 12:30:53 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.108 2014/07/28 17:35:47 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -324,7 +324,7 @@ static int math_frexp (lua_State *L) { static int math_ldexp (lua_State *L) { lua_Number x = luaL_checknumber(L, 1); - int ep = luaL_checkint(L, 2); + int ep = (int)luaL_checkinteger(L, 2); lua_pushnumber(L, l_mathop(ldexp)(x, ep)); return 1; } -- cgit v1.2.3-55-g6feb