From: domenic Date: Thu, 7 May 2015 18:17:57 +0000 (-0700) Subject: Fix the build with snapshot=external X-Git-Tag: upstream/4.7.83~2736 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d1e35ab432505170d39846c42902cd7cfd08608;p=platform%2Fupstream%2Fv8.git Fix the build with snapshot=external R=jochen@chromium.org BUG= Review URL: https://codereview.chromium.org/1137473002 Cr-Commit-Position: refs/heads/master@{#28304} --- diff --git a/src/startup-data-util.cc b/src/startup-data-util.cc index 2000e3ccc..1b2f7ed7e 100644 --- a/src/startup-data-util.cc +++ b/src/startup-data-util.cc @@ -44,7 +44,7 @@ char* StartupDataHandler::RelativePath(char** buffer, const char* exec_path, DCHECK(exec_path); const char* last_slash = strrchr(exec_path, '/'); if (last_slash) { - int after_slash = last_slash - exec_path + 1; + int after_slash = static_cast(last_slash - exec_path + 1); int name_length = static_cast(strlen(name)); *buffer = reinterpret_cast(calloc(after_slash + name_length + 1, 1)); strncpy(*buffer, exec_path, after_slash); @@ -75,7 +75,7 @@ void StartupDataHandler::Load(const char* blob_file, if (!file) return; fseek(file, 0, SEEK_END); - startup_data->raw_size = ftell(file); + startup_data->raw_size = static_cast(ftell(file)); rewind(file); startup_data->data = new char[startup_data->raw_size];