aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 92a54f1f..b7fc41c6 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.33 2000/12/04 18:33:40 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.34 2001/02/02 19:02:40 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*/
@@ -166,8 +166,8 @@ static int math_max (lua_State *L) {
166 166
167 167
168static int math_random (lua_State *L) { 168static int math_random (lua_State *L) {
169 /* the '%' avoids the (rare) case of r==1, and is needed also because on 169 /* the `%' avoids the (rare) case of r==1, and is needed also because on
170 some systems (SunOS!) "rand()" may return a value larger than RAND_MAX */ 170 some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */
171 lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX; 171 lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX;
172 switch (lua_gettop(L)) { /* check number of arguments */ 172 switch (lua_gettop(L)) { /* check number of arguments */
173 case 0: { /* no arguments */ 173 case 0: { /* no arguments */