Commit 30b4bff4 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fix building on 64-bit Windows

Review URL: http://codereview.chromium.org/546147

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3700 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 29af9c54
......@@ -2209,7 +2209,7 @@ bool GetEvaluateStringResult(char *message, char* buffer, int buffer_size) {
return false;
}
Vector<char> buf(buffer, buffer_size);
int len = pos2 - pos1;
int len = static_cast<int>(pos2 - pos1);
if (len > buffer_size - 1) {
len = buffer_size - 1;
}
......
......@@ -319,7 +319,7 @@ void FileByteSink::WriteSpaceUsed(
int map_space_used,
int cell_space_used,
int large_space_used) {
int file_name_length = strlen(file_name_) + 10;
int file_name_length = StrLength(file_name_) + 10;
Vector<char> name = Vector<char>::New(file_name_length + 1);
OS::SNPrintF(name, "%s.size", file_name_);
FILE* fp = OS::FOpen(name.start(), "w");
......@@ -361,7 +361,7 @@ TEST(PartialSerialization) {
DEPENDENT_TEST(PartialDeserialization, PartialSerialization) {
v8::V8::Initialize();
const char* file_name = FLAG_testing_serialization_file;
int file_name_length = strlen(file_name) + 10;
int file_name_length = StrLength(file_name) + 10;
Vector<char> name = Vector<char>::New(file_name_length + 1);
OS::SNPrintF(name, "%s.size", file_name);
FILE* fp = OS::FOpen(name.start(), "r");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment