diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc index 05fafe32be..8cfd5f71fd 100755 --- a/test/cctest/test-parsing.cc +++ b/test/cctest/test-parsing.cc @@ -839,12 +839,12 @@ TEST(ScopePositions) { reinterpret_cast(&marker) - 128 * 1024); for (int i = 0; source_data[i].outer_prefix; i++) { - size_t kPrefixLen = strlen(source_data[i].outer_prefix); - size_t kInnerLen = strlen(source_data[i].inner_source); - size_t kSuffixLen = strlen(source_data[i].outer_suffix); - size_t kProgramSize = kPrefixLen + kInnerLen + kSuffixLen; + int kPrefixLen = i::StrLength(source_data[i].outer_prefix); + int kInnerLen = i::StrLength(source_data[i].inner_source); + int kSuffixLen = i::StrLength(source_data[i].outer_suffix); + int kProgramSize = kPrefixLen + kInnerLen + kSuffixLen; i::Vector program = i::Vector::New(kProgramSize + 1); - size_t length; + int length; length = i::OS::SNPrintF(program, "%s%s%s", source_data[i].outer_prefix, source_data[i].inner_source,