Index: src/js/math.js |
diff --git a/src/js/math.js b/src/js/math.js |
index ba2b2186f4aebc56396c56ecb349f9ae33739825..6a0beef43c10b0bcb4263d008ed331ac1980b16a 100644 |
--- a/src/js/math.js |
+++ b/src/js/math.js |
@@ -282,7 +282,7 @@ endmacro |
function CubeRoot(x) { |
var approx_hi = MathFloorJS(%_DoubleHi(x) / 3) + 0x2A9F7893; |
- var approx = %_ConstructDouble(approx_hi, 0); |
+ var approx = %_ConstructDouble(approx_hi | 0, 0); |
approx = NEWTON_ITERATION_CBRT(x, approx); |
approx = NEWTON_ITERATION_CBRT(x, approx); |
approx = NEWTON_ITERATION_CBRT(x, approx); |