summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--parse.cxx2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9495abd4..9c21e000 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-25 Frank Ch. Eigler <fche@elastic.org>
+
+ PR 2205, patch from <hiramatu@sdl.hitachi.co.jp>:
+ * parse.cxx (scan): Correct EOF detection for %{ %} case.
+
2006-01-24 Frank Ch. Eigler <fche@elastic.org>
PR 2060 etc.
diff --git a/parse.cxx b/parse.cxx
index 1d8e2947..dcdb7260 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -597,7 +597,7 @@ lexer::scan ()
while (true)
{
c = input_get ();
- if (c == 0) // EOF
+ if (c < 0) // EOF
{
n->type = tok_junk;
break;