Revision: 11013
Author:   [email protected]
Date:     Mon Mar 12 08:26:05 2012
Log:      Fix compile warning on 64 bit Windows.
Review URL: https://chromiumcodereview.appspot.com/9690019
http://code.google.com/p/v8/source/detail?r=11013

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

=======================================
--- /branches/bleeding_edge/test/cctest/test-parsing.cc Mon Mar 12 05:35:28 2012 +++ /branches/bleeding_edge/test/cctest/test-parsing.cc Mon Mar 12 08:26:05 2012
@@ -361,7 +361,7 @@

   int first_function =
       static_cast<int>(strstr(program, "function") - program);
- int first_lbrace = first_function + static_cast<int>(strlen("function () "));
+  int first_lbrace = first_function + i::StrLength("function () ");
   CHECK_EQ('{', program[first_lbrace]);
   i::FunctionEntry entry1 = data->GetFunctionEntry(first_lbrace);
   CHECK(!entry1.is_valid());
@@ -369,7 +369,7 @@
   int second_function =
static_cast<int>(strstr(program + first_lbrace, "function") - program);
   int second_lbrace =
-      second_function + static_cast<int>(strlen("function () "));
+      second_function + i::StrLength("function () ");
   CHECK_EQ('{', program[second_lbrace]);
   i::FunctionEntry entry2 = data->GetFunctionEntry(second_lbrace);
   CHECK(entry2.is_valid());
@@ -752,7 +752,7 @@


 static int Utf8LengthHelper(const char* s) {
-  int len = strlen(s);
+  int len = i::StrLength(s);
   int character_length = len;
   for (int i = 0; i < len; i++) {
     unsigned char c = s[i];

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

Reply via email to