summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 181ee8d4..1d99df32 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.10 1998/06/19 16:14:09 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.11 1998/09/08 19:25:35 roberto Exp roberto $
3** Lua standard mathematical library 3** Lua standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -122,7 +122,7 @@ static void math_frexp (void) {
122} 122}
123 123
124static void math_ldexp (void) { 124static void math_ldexp (void) {
125 lua_pushnumber(ldexp(luaL_check_number(1), luaL_check_number(2))); 125 lua_pushnumber(ldexp(luaL_check_number(1), luaL_check_int(2)));
126} 126}
127 127
128 128
@@ -166,9 +166,8 @@ static void math_random (void)
166} 166}
167 167
168 168
169static void math_randomseed (void) 169static void math_randomseed (void) {
170{ 170 srand(luaL_check_int(1));
171 srand(luaL_check_number(1));
172} 171}
173 172
174 173