Index: src/conversions-inl.h |
diff --git a/src/conversions-inl.h b/src/conversions-inl.h |
index 8c875d75bfff6365601bb0d12c26177064c66097..ba7220a4a62b90151b41275e3dbfaa23f3b878ff 100644 |
--- a/src/conversions-inl.h |
+++ b/src/conversions-inl.h |
@@ -84,7 +84,7 @@ int32_t DoubleToInt32(double x) { |
static const double two32 = 4294967296.0; |
static const double two31 = 2147483648.0; |
if (!isfinite(x) || x == 0) return 0; |
- if (x < 0 || x >= two32) x = fmod(x, two32); |
+ if (x < 0 || x >= two32) x = modulo(x, two32); |
x = (x >= 0) ? floor(x) : ceil(x) + two32; |
return (int32_t) ((x >= two31) ? x - two32 : x); |
} |