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

Unified Diff: src/d8.cc

Issue 727513002: Fix size_t to int conversion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index fb24bcce585c802450a500b8b5000c5aa445058b..ed4a501619a649e93a3872e34f0834279e189585 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1625,9 +1625,9 @@ class StartupDataHandler {
rewind(file);
startup_data->data = new char[startup_data->raw_size];
- startup_data->compressed_size = fread(
- const_cast<char*>(startup_data->data), 1, startup_data->raw_size,
- file);
+ startup_data->compressed_size =
+ static_cast<int>(fread(const_cast<char*>(startup_data->data), 1,
+ startup_data->raw_size, file));
fclose(file);
if (startup_data->raw_size == startup_data->compressed_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