Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 4f71f83bf958cd4c6e36e3fa6dfeac0c265f25b6..5d4316af1c8d4adde1770818d74d367cc52d78be 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -945,9 +945,9 @@ void LCodeGen::DoMathFloorOfDiv(LMathFloorOfDiv* instr) { |
static_cast<double>(static_cast<uint64_t>(1) << shift) / divisor_abs; |
int64_t multiplier; |
if (multiplier_f - floor(multiplier_f) < 0.5) { |
- multiplier = floor(multiplier_f); |
+ multiplier = static_cast<int64_t>(floor(multiplier_f)); |
} else { |
- multiplier = floor(multiplier_f) + 1; |
+ multiplier = static_cast<int64_t>(floor(multiplier_f)) + 1; |
} |
// The multiplier is a uint32. |
ASSERT(multiplier > 0 && |