source:
patches/bison-3.0-fix_eof-1.patch@
f120918
Last change on this file since f120918 was 15945347, checked in by , 11 years ago | |
---|---|
|
|
File size: 1.1 KB |
-
bison-3.0/src/location.c
Submitted By: Ken Moffat (zrniwhoop at ntlworld dot com) Date: 2013-10-16 Initial Package Version: 3.0 Origin: Upstream Upstream Status: Applied Description: Fixes EOF check. commit 4c4191cec2b30632a31993a6e46fb241ab9c3434 Author: Andreas Schwab <schwab@linux-m68k.org> Date: Sat Sep 28 00:00:34 2013 +0200 location: fix EOF check * location.c (location_caret): Use int, not char, for values from getc. found at http://git.savannah.gnu.org/cgit/bison.git/diff/src/location.c?id=4c4191cec2b30632a31993a6e46fb241ab9c3434&ignorews=1 copied and pasted.
old new 188 188 /* Read the actual line. Don't update the offset, so that we keep a pointer 189 189 to the start of the line. */ 190 190 { 191 charc = getc (caret_info.source);191 int c = getc (caret_info.source); 192 192 if (c != EOF) 193 193 { 194 194 /* Quote the file, indent by a single column. */
Note:
See TracBrowser
for help on using the repository browser.