aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-04-23 14:48:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-04-23 14:48:15 -0300
commit0ddc0f47bd2a03678e1afbc384550aecb55a318f (patch)
treeb441f7e68329c59aa3f44bb4967f404b5319dbe4 /lmathlib.c
parentcac075a1221f373053196dbb24bdcff4609b8241 (diff)
downloadlua-0ddc0f47bd2a03678e1afbc384550aecb55a318f.tar.gz
lua-0ddc0f47bd2a03678e1afbc384550aecb55a318f.tar.bz2
lua-0ddc0f47bd2a03678e1afbc384550aecb55a318f.zip
Several details about 5.4.0 rc1
Corrected several small details: added 'const', adjusts in tabs x spaces, removed unused #includes and #defines, misspellings, etc.
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 63f6036a..86def470 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -328,7 +328,7 @@ static Rand64 nextrand (Rand64 *state) {
328*/ 328*/
329 329
330/* must throw out the extra (64 - FIGS) bits */ 330/* must throw out the extra (64 - FIGS) bits */
331#define shift64_FIG (64 - FIGS) 331#define shift64_FIG (64 - FIGS)
332 332
333/* to scale to [0, 1), multiply by scaleFIG = 2^(-FIGS) */ 333/* to scale to [0, 1), multiply by scaleFIG = 2^(-FIGS) */
334#define scaleFIG (l_mathop(0.5) / ((Rand64)1 << (FIGS - 1))) 334#define scaleFIG (l_mathop(0.5) / ((Rand64)1 << (FIGS - 1)))