location: fix EOF check

* location.c (location_caret): Use int, not char, for values from
getc.
This commit is contained in:
Andreas Schwab
2013-09-28 00:00:34 +02:00
committed by Akim Demaille
parent ae7cd18c98
commit 4c4191cec2

View File

@@ -188,7 +188,7 @@ location_caret (location loc, FILE *out)
/* Read the actual line. Don't update the offset, so that we keep a pointer
to the start of the line. */
{
char c = getc (caret_info.source);
int c = getc (caret_info.source);
if (c != EOF)
{
/* Quote the file, indent by a single column. */