Revision: 6819
Author: [email protected]
Date: Wed Feb 16 05:42:26 2011
Log: Blargh. Yet another shot in the dark attempt to fix win64 compile.
BUG=
TEST=
Review URL: http://codereview.chromium.org/6480116
http://code.google.com/p/v8/source/detail?r=6819
Modified:
/branches/bleeding_edge/test/cctest/test-parsing.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-parsing.cc Wed Feb 16 05:37:26
2011
+++ /branches/bleeding_edge/test/cctest/test-parsing.cc Wed Feb 16 05:42:26
2011
@@ -323,14 +323,15 @@
int first_function =
static_cast<int>(strstr(program, "function") - program);
- int first_lbrace = first_function + strlen("function () ");
+ int first_lbrace = first_function + static_cast<int>(strlen("function
() "));
CHECK_EQ('{', program[first_lbrace]);
i::FunctionEntry entry1 = data->GetFunctionEntry(first_lbrace);
CHECK(!entry1.is_valid());
int second_function =
static_cast<int>(strstr(program + first_lbrace, "function") -
program);
- int second_lbrace = second_function + strlen("function () ");
+ int second_lbrace =
+ second_function + static_cast<int>(strlen("function () "));
CHECK_EQ('{', program[second_lbrace]);
i::FunctionEntry entry2 = data->GetFunctionEntry(second_lbrace);
CHECK(entry2.is_valid());
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev