Try to fix win64 build.

TBR=mikhail.naganov@gmail.com

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5664 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
vitalyr@chromium.org 2010-10-19 16:56:44 +00:00
parent e6b33bd20b
commit 051f156bdd

View File

@ -154,7 +154,8 @@ void Log::OpenFile(const char* name) {
// Open a file for logging the contents of code objects so that // Open a file for logging the contents of code objects so that
// they can be disassembled later. // they can be disassembled later.
size_t name_len = strlen(name); size_t name_len = strlen(name);
ScopedVector<char> code_name(name_len + sizeof(kCodeLogExt)); ScopedVector<char> code_name(
static_cast<int>(name_len + sizeof(kCodeLogExt)));
memcpy(code_name.start(), name, name_len); memcpy(code_name.start(), name, name_len);
memcpy(code_name.start() + name_len, kCodeLogExt, sizeof(kCodeLogExt)); memcpy(code_name.start() + name_len, kCodeLogExt, sizeof(kCodeLogExt));
output_code_handle_ = OS::FOpen(code_name.start(), OS::LogFileOpenMode); output_code_handle_ = OS::FOpen(code_name.start(), OS::LogFileOpenMode);