Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 2c5e9a82a88fe575730ded75b7d1df4284b461f7..5af9d86a3f19f413a0318718a769737d6898d1c7 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1644,8 +1644,10 @@ void Genesis::InitializeBuiltinTypedArrays() { |
{ // Initialize a result array for rempio2 calculation |
const size_t num_elements = 2; |
- SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array, |
- NULL, num_elements, "rempio2result"); |
+ double* data = |
+ SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array, |
+ NULL, num_elements, "rempio2result"); |
+ for (size_t i = 0; i < num_elements; i++) data[i] = 0; |
} |
} |