Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1531)

Unified Diff: src/startup-data-util.cc

Issue 1137473002: Fix the build with snapshot=external (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/startup-data-util.cc
diff --git a/src/startup-data-util.cc b/src/startup-data-util.cc
index 2000e3ccca5dda8a38f4d391c437dbcc0de5b3f7..1b2f7ed7e95129a288777d19709f2c1e84af9dde 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<int>(last_slash - exec_path + 1);
int name_length = static_cast<int>(strlen(name));
*buffer = reinterpret_cast<char*>(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<int>(ftell(file));
rewind(file);
startup_data->data = new char[startup_data->raw_size];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698