Initialize double values before calling rempio2.
authoryangguo@chromium.org <yangguo@chromium.org>
Wed, 15 Oct 2014 09:24:55 +0000 (09:24 +0000)
committeryangguo@chromium.org <yangguo@chromium.org>
Wed, 15 Oct 2014 09:24:55 +0000 (09:24 +0000)
R=ishell@chromium.org
BUG=chromium:421981
LOG=N

Review URL: https://codereview.chromium.org/645243003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24621 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/runtime/runtime-maths.cc

index ec8b74a..6855675 100644 (file)
@@ -65,7 +65,7 @@ RUNTIME_FUNCTION(Runtime_RemPiO2) {
   DCHECK(args.length() == 1);
   CONVERT_DOUBLE_ARG_CHECKED(x, 0);
   Factory* factory = isolate->factory();
-  double y[2];
+  double y[2] = {0.0, 0.0};
   int n = fdlibm::rempio2(x, y);
   Handle<FixedArray> array = factory->NewFixedArray(3);
   Handle<HeapNumber> y0 = factory->NewHeapNumber(y[0]);