summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-19 13:14:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-19 13:14:09 -0300
commit9618aaf07d0d82ccbac91db22cb42451ec17d7ed (patch)
tree199314fbf7462d174921c71af389da14b4f6c595 /lmathlib.c
parentbec9bc4154e54fbc19b134874f6301f1e4654d5d (diff)
downloadlua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.tar.gz
lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.tar.bz2
lua-9618aaf07d0d82ccbac91db22cb42451ec17d7ed.zip
small corrections in comments
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 8b8babaa..c62b88c4 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.8 1997/12/26 18:36:31 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.9 1998/05/27 19:09:39 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*/
@@ -155,7 +155,7 @@ static void math_max (void)
155 155
156static void math_random (void) 156static void math_random (void)
157{ 157{
158 /* the '%' is needed because on some sistems (SunOS!) "rand()" may */ 158 /* the '%' is needed because on some systems (SunOS!) "rand()" may */
159 /* return a value bigger than RAND_MAX... */ 159 /* return a value bigger than RAND_MAX... */
160 double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX; 160 double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX;
161 double l = luaL_opt_number(1, 0); 161 double l = luaL_opt_number(1, 0);