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

Unified Diff: tools/shell-utils.h

Issue 1111733002: [clang] Use -Wshorten-64-to-32 to enable warnings about 64bit to 32bit truncations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win warnings. Created 5 years, 8 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 | « test/cctest/test-mark-compact.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/shell-utils.h
diff --git a/tools/shell-utils.h b/tools/shell-utils.h
index 7b51d2f5b01468846e7e7e588b5aded5e137d514..31bd8ea8f68df45f42cb39a18b3949baca222e83 100644
--- a/tools/shell-utils.h
+++ b/tools/shell-utils.h
@@ -27,6 +27,8 @@
// Utility functions used by parser-shell.
+#include "src/globals.h"
+
#include <stdio.h>
namespace v8 {
@@ -44,7 +46,7 @@ const byte* ReadFileAndRepeat(const char* name, int* size, int repeat) {
if (file == NULL) return NULL;
fseek(file, 0, SEEK_END);
- int file_size = ftell(file);
+ int file_size = static_cast<int>(ftell(file));
rewind(file);
*size = file_size * repeat;
« no previous file with comments | « test/cctest/test-mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698