Fix Win64 build with VS2008.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Sep 2010 13:24:14 +0000 (13:24 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Sep 2010 13:24:14 +0000 (13:24 +0000)
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

index 5ddd044..02503f2 100755 (executable)
@@ -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);