diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-01 08:54:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-01 08:54:56 -0300 |
commit | 798660c9cddef8a73f68058576e3d47eed2b1a27 (patch) | |
tree | a0aef60fd2f6910ea7ecf6be127f9035e9ce3e07 /lmathlib.c | |
parent | 34b6664dcb28b18ca3f08ed5e36da094b007eb7b (diff) | |
download | lua-798660c9cddef8a73f68058576e3d47eed2b1a27.tar.gz lua-798660c9cddef8a73f68058576e3d47eed2b1a27.tar.bz2 lua-798660c9cddef8a73f68058576e3d47eed2b1a27.zip |
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
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 | } |