forked from pool/bison
9a8cec91e2
- location-eof-check.patch: Fix broken EOF check OBS-URL: https://build.opensuse.org/request/show/201240 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=32
14 lines
511 B
Diff
14 lines
511 B
Diff
Index: bison-3.0/src/location.c
|
|
===================================================================
|
|
--- bison-3.0.orig/src/location.c
|
|
+++ bison-3.0/src/location.c
|
|
@@ -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. */
|