Commit eeb8782a authored by André Baixo's avatar André Baixo Committed by Ross McIlroy

Fix size_t to int conversion.

BUG=421063
LOG=N
R=vogelheim@chromium.org

Review URL: https://codereview.chromium.org/727513002

Patch from André Baixo <baixo@google.com>.

Cr-Commit-Position: refs/heads/master@{#25340}
parent 4f6c75f8
...@@ -1625,9 +1625,9 @@ class StartupDataHandler { ...@@ -1625,9 +1625,9 @@ class StartupDataHandler {
rewind(file); rewind(file);
startup_data->data = new char[startup_data->raw_size]; startup_data->data = new char[startup_data->raw_size];
startup_data->compressed_size = fread( startup_data->compressed_size =
const_cast<char*>(startup_data->data), 1, startup_data->raw_size, static_cast<int>(fread(const_cast<char*>(startup_data->data), 1,
file); startup_data->raw_size, file));
fclose(file); fclose(file);
if (startup_data->raw_size == startup_data->compressed_size) if (startup_data->raw_size == startup_data->compressed_size)
......
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