summaryrefslogtreecommitdiff
path: root/src/lmathlib.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2013-03-07 12:00:00 +0000
committerrepogen <>2013-03-07 12:00:00 +0000
commita101faf3e9db5b8b47cb0bcfb973b13d46ca304a (patch)
tree54cf972af9830e318800f0692faad2b93a4a8a27 /src/lmathlib.c
parent00ce46285bde86085185308a4197c15bc0b642bd (diff)
downloadlua-github-5.2.2-rc3.tar.gz
Lua 5.2.2-rc35.2.2-rc3
Diffstat (limited to 'src/lmathlib.c')
-rw-r--r--src/lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lmathlib.c b/src/lmathlib.c
index a703c33b..a49f1fd2 100644
--- a/src/lmathlib.c
+++ b/src/lmathlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmathlib.c,v 1.82 2013/01/29 16:00:40 roberto Exp $
+** $Id: lmathlib.c,v 1.83 2013/03/07 18:21:32 roberto Exp $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -160,7 +160,7 @@ static int math_frexp (lua_State *L) {
static int math_ldexp (lua_State *L) {
lua_Number x = luaL_checknumber(L, 1);
- lua_Number ep = luaL_checknumber(L, 2);
+ int ep = luaL_checkint(L, 2);
lua_pushnumber(L, l_mathop(ldexp)(x, ep));
return 1;
}