1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2002-12-16 06:56:33 +00:00
parent 77d007dc05
commit 65f3eef1ee
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Dec 16 15:53:20 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (nextc): get rid of overrun. (pointed out by akr
[ruby-list:36773])
Sun Dec 15 21:16:44 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/mkmf.rb (init_mkmf): add $(topdir) to $LIBPATH if $extmk.

View file

@ -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';
}