From 88eb06098e292eada29f738fa6534fc445686700 Mon Sep 17 00:00:00 2001 From: "antonm@chromium.org" Date: Wed, 22 Sep 2010 13:24:14 +0000 Subject: [PATCH] Fix Win64 build with VS2008. strlen returns size_t and VS2008 is now pretty picky about that. Review URL: http://codereview.chromium.org/3384019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5506 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-parsing.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc index 5ddd044..02503f2 100755 --- a/test/cctest/test-parsing.cc +++ b/test/cctest/test-parsing.cc @@ -156,7 +156,7 @@ TEST(ScanHTMLEndComments) { for (int i = 0; tests[i]; i++) { v8::ScriptData* data = - v8::ScriptData::PreCompile(tests[i], strlen(tests[i])); + v8::ScriptData::PreCompile(tests[i], i::StrLength(tests[i])); CHECK(data != NULL && !data->HasError()); delete data; } @@ -198,9 +198,9 @@ TEST(Preparsing) { "var w = /RegExp Literal\\u0020With Escape/gin;" "var y = { get getter() { return 42; }, " " set setter(v) { this.value = v; }};"; - int source_length = strlen(source); + int source_length = i::StrLength(source); const char* error_source = "var x = y z;"; - int error_source_length = strlen(error_source); + int error_source_length = i::StrLength(error_source); v8::ScriptData* preparse = v8::ScriptData::PreCompile(source, source_length); -- 2.7.4