summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-12-28 11:44:54 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-12-28 11:44:54 -0200
commit766e67ef3b2af42f800b281e0fa0f57c7e3d2e3f (patch)
tree96fbaa15baec33d4f14b27df79778e766ef46f57 /lmathlib.c
parent4c94d8cc2cbeac74ae3618b1322c3f3d3ec166ea (diff)
downloadlua-766e67ef3b2af42f800b281e0fa0f57c7e3d2e3f.tar.gz
lua-766e67ef3b2af42f800b281e0fa0f57c7e3d2e3f.tar.bz2
lua-766e67ef3b2af42f800b281e0fa0f57c7e3d2e3f.zip
to avoid warnings about "typecast" (Visual C++)
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