DescriptionUse 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
Committed: https://crrev.com/b43d478991126401b0a03ef49438fcdcda961938
Cr-Commit-Position: refs/heads/master@{#439479}
Patch Set 1 #
Messages
Total messages: 14 (8 generated)
|