From aaf56622622f4f00cdaa1d634f06e8b889111f8d Mon Sep 17 00:00:00 2001 From: "ricow@chromium.org" Date: Thu, 6 May 2010 11:05:50 +0000 Subject: [PATCH] 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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4602 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index 6ba708b..2e601af 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -9614,7 +9614,7 @@ v8::Handle AnalyzeStackInNativeCode(const v8::Arguments& args) { ASSERT(args.Length() == 1); - int testGroup = args[0]->ToNumber()->Value(); + int testGroup = args[0]->Int32Value(); if (testGroup == kOverviewTest) { v8::Handle stackTrace = v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kOverview); -- 2.7.4