diff options
Diffstat (limited to '')
| -rw-r--r-- | src/3rdParty/lua/lmathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdParty/lua/lmathlib.c b/src/3rdParty/lua/lmathlib.c index 5f5983a..e0c61a1 100644 --- a/src/3rdParty/lua/lmathlib.c +++ b/src/3rdParty/lua/lmathlib.c | |||
| @@ -475,7 +475,7 @@ static lua_Number I2d (Rand64 x) { | |||
| 475 | 475 | ||
| 476 | /* 2^(-FIGS) = 1.0 / 2^30 / 2^3 / 2^(FIGS-33) */ | 476 | /* 2^(-FIGS) = 1.0 / 2^30 / 2^3 / 2^(FIGS-33) */ |
| 477 | #define scaleFIG \ | 477 | #define scaleFIG \ |
| 478 | ((lua_Number)1.0 / (UONE << 30) / 8.0 / (UONE << (FIGS - 33))) | 478 | (l_mathop(1.0) / (UONE << 30) / l_mathop(8.0) / (UONE << (FIGS - 33))) |
| 479 | 479 | ||
| 480 | /* | 480 | /* |
| 481 | ** use FIGS - 32 bits from lower half, throwing out the other | 481 | ** use FIGS - 32 bits from lower half, throwing out the other |
| @@ -486,7 +486,7 @@ static lua_Number I2d (Rand64 x) { | |||
| 486 | /* | 486 | /* |
| 487 | ** higher 32 bits go after those (FIGS - 32) bits: shiftHI = 2^(FIGS - 32) | 487 | ** higher 32 bits go after those (FIGS - 32) bits: shiftHI = 2^(FIGS - 32) |
| 488 | */ | 488 | */ |
| 489 | #define shiftHI ((lua_Number)(UONE << (FIGS - 33)) * 2.0) | 489 | #define shiftHI ((lua_Number)(UONE << (FIGS - 33)) * l_mathop(2.0)) |
| 490 | 490 | ||
| 491 | 491 | ||
| 492 | static lua_Number I2d (Rand64 x) { | 492 | static lua_Number I2d (Rand64 x) { |
