Use int for fgetc() result in headless_shell
Fixes compilation failure introduced by c3ac4fc0. fgetc() returns its result as an _unsigned_ char and defines EOF as -1, and gives the result as an int. If char is unsigned it's impossible for EOF to match, and this results in a compilation error. If char is signed then potentially valid input could match EOF. BUG=674765 R=altimin@chromium.org, skyostil@chromium.org Change-Id: I979a8401e8c33d8983e7d1bee96b81bc555863ec Review-Url: https://codereview.chromium.org/2579773003 Cr-Commit-Position: refs/heads/master@{#439479}
Showing
Please register or sign in to comment