summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-16 06:56:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-16 06:56:33 +0000
commit65f3eef1ee8087f301b7556ff94957754aa022ac (patch)
treec0737701408a079d097872eada0281563ea3f8a4 /parse.y
parent77d007dc05d07d2167e083d39b3afa6ca1562e9f (diff)
* parse.y (nextc): get rid of overrun. (pointed out by akr
[ruby-list:36773]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 4ffee17..1e5696b 100644
--- a/parse.y
+++ b/parse.y
@@ -2529,7 +2529,7 @@ nextc()
}
}
c = (unsigned char)*lex_p++;
- if (c == '\r' && lex_p <= lex_pend && *lex_p == '\n') {
+ if (c == '\r' && lex_p < lex_pend && *lex_p == '\n') {
lex_p++;
c = '\n';
}