Revision: 4602
Author: [email protected]
Date: Thu May  6 04:05:50 2010
Log: Use Int32Value() instead of ToNumber()->Value() in test-api.cc.

This problem was introduced in revision 4597.

ToNumber()->Value() used as an int will throw a compile waring on
windows since it returns a double.

Review URL: http://codereview.chromium.org/2037001
http://code.google.com/p/v8/source/detail?r=4602

Modified:
 /branches/bleeding_edge/test/cctest/test-api.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc     Thu May  6 00:32:44 2010
+++ /branches/bleeding_edge/test/cctest/test-api.cc     Thu May  6 04:05:50 2010
@@ -9614,7 +9614,7 @@

   ASSERT(args.Length() == 1);

-  int testGroup = args[0]->ToNumber()->Value();
+  int testGroup = args[0]->Int32Value();
   if (testGroup == kOverviewTest) {
     v8::Handle<v8::StackTrace> stackTrace =
         v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kOverview);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to