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

Unified Diff: headless/app/headless_shell.cc

Issue 2579773003: Use int for fgetc() result in headless_shell (Closed)
Patch Set: Created 4 years 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: headless/app/headless_shell.cc
diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc
index b2ee8daa7bf420a2107d888fc5adac1d2ecedf3d..e53dad665ea2e7259ed5d3c671c77f74c2178fb6 100644
--- a/headless/app/headless_shell.cc
+++ b/headless/app/headless_shell.cc
@@ -279,7 +279,7 @@ class HeadlessShell : public HeadlessWebContents::Observer,
printf(">>> ");
std::stringstream expression;
while (true) {
- char c = fgetc(stdin);
+ int c = fgetc(stdin);
if (c == EOF || c == '\n') {
break;
}
« 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