summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-01-25 14:59:47 +0000
committerfche <fche>2006-01-25 14:59:47 +0000
commit2ba0c4740ed45717d8060fe630643aacfd635996 (patch)
tree3ae1a2a82c56b7be798994407d47559508a2abc3 /parse.cxx
parente248d93f6ba4f1529356993d55e42d6f7c08f066 (diff)
downloadsystemtap-steved-2ba0c4740ed45717d8060fe630643aacfd635996.tar.gz
systemtap-steved-2ba0c4740ed45717d8060fe630643aacfd635996.tar.xz
systemtap-steved-2ba0c4740ed45717d8060fe630643aacfd635996.zip
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.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx2
1 files changed, 1 insertions, 1 deletions
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;