diff options
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.107 2014/07/17 12:30:53 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.108 2014/07/28 17:35:47 roberto Exp roberto $ |
3 | ** Standard mathematical library | 3 | ** Standard mathematical library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -324,7 +324,7 @@ static int math_frexp (lua_State *L) { | |||
324 | 324 | ||
325 | static int math_ldexp (lua_State *L) { | 325 | static int math_ldexp (lua_State *L) { |
326 | lua_Number x = luaL_checknumber(L, 1); | 326 | lua_Number x = luaL_checknumber(L, 1); |
327 | int ep = luaL_checkint(L, 2); | 327 | int ep = (int)luaL_checkinteger(L, 2); |
328 | lua_pushnumber(L, l_mathop(ldexp)(x, ep)); | 328 | lua_pushnumber(L, l_mathop(ldexp)(x, ep)); |
329 | return 1; | 329 | return 1; |
330 | } | 330 | } |