diff options
author | Li Jin <dragon-fly@qq.com> | 2022-02-24 10:20:06 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-02-24 10:20:19 +0800 |
commit | fa9aad9300fd5c1b7ae697881d787d015fa9ef24 (patch) | |
tree | a3860d3a535ce269ff23be17cdee174bf7416c2e /src/3rdParty/lua/lmathlib.c | |
parent | 63878b93b0f142af74b397a02b2c80be039b03ec (diff) | |
download | yuescript-fa9aad9300fd5c1b7ae697881d787d015fa9ef24.tar.gz yuescript-fa9aad9300fd5c1b7ae697881d787d015fa9ef24.tar.bz2 yuescript-fa9aad9300fd5c1b7ae697881d787d015fa9ef24.zip |
update for windows build dll.
Diffstat (limited to 'src/3rdParty/lua/lmathlib.c')
-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) { |