Revision: 24621
Author:   [email protected]
Date:     Wed Oct 15 09:24:55 2014 UTC
Log:      Initialize double values before calling rempio2.

[email protected]
BUG=chromium:421981
LOG=N

Review URL: https://codereview.chromium.org/645243003
https://code.google.com/p/v8/source/detail?r=24621

Modified:
 /branches/bleeding_edge/src/runtime/runtime-maths.cc

=======================================
--- /branches/bleeding_edge/src/runtime/runtime-maths.cc Wed Oct 8 11:19:51 2014 UTC +++ /branches/bleeding_edge/src/runtime/runtime-maths.cc Wed Oct 15 09:24:55 2014 UTC
@@ -65,7 +65,7 @@
   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]);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to