source: patches/bison-3.0-fix_eof-1.patch@ 66fefb0

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 66fefb0 was 15945347, checked in by William Harrington <kb0iic@…>, 11 years ago

Add bison eof fix patch.

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[15945347]1Submitted By: Ken Moffat (zrniwhoop at ntlworld dot com)
2Date: 2013-10-16
3Initial Package Version: 3.0
4Origin: Upstream
5Upstream Status: Applied
6Description: Fixes EOF check.
7
8commit 4c4191cec2b30632a31993a6e46fb241ab9c3434
9
10Author: Andreas Schwab <schwab@linux-m68k.org>
11Date: Sat Sep 28 00:00:34 2013 +0200
12
13 location: fix EOF check
14
15 * location.c (location_caret): Use int, not char, for values from
16 getc.
17
18 found at http://git.savannah.gnu.org/cgit/bison.git/diff/src/location.c?id=4c4191cec2b30632a31993a6e46fb241ab9c3434&ignorews=1
19 copied and pasted.
20
21--- bison-3.0/src/location.c.orig 2013-10-16 18:02:56.880658070 +0100
22+++ bison-3.0/src/location.c 2013-10-16 18:04:12.676299868 +0100
23@@ -188,7 +188,7 @@
24 /* Read the actual line. Don't update the offset, so that we keep a pointer
25 to the start of the line. */
26 {
27- char c = getc (caret_info.source);
28+ int c = getc (caret_info.source);
29 if (c != EOF)
30 {
31 /* Quote the file, indent by a single column. */
32
Note: See TracBrowser for help on using the repository browser.