* parse.y (parser_tokspace): increment tokidx
fixes test failure at [test/ruby/test_stringchar.rb:72] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1c662c2b63
commit
966e15e655
@ -1,3 +1,7 @@
|
||||
Thu Oct 25 13:59:53 2007 David Flanagan <davidflanagan@ruby-lang.org>
|
||||
* parse.y (parser_tokspace): increment tokidx
|
||||
fixes test failure at [test/ruby/test_stringchar.rb:72]
|
||||
|
||||
Thu Oct 25 09:49:49 2007 akira yamada <akira@ruby-lang.org>
|
||||
|
||||
* lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
|
||||
|
8
parse.y
8
parse.y
@ -4917,13 +4917,13 @@ parser_newtok(struct parser_params *parser)
|
||||
static char *
|
||||
parser_tokspace(struct parser_params *parser, int n)
|
||||
{
|
||||
int idx = tokidx + n;
|
||||
tokidx += n;
|
||||
|
||||
if (idx >= toksiz) {
|
||||
do {toksiz *= 2;} while (toksiz < idx);
|
||||
if (tokidx >= toksiz) {
|
||||
do {toksiz *= 2;} while (toksiz < tokidx);
|
||||
REALLOC_N(tokenbuf, char, toksiz);
|
||||
}
|
||||
return &tokenbuf[tokidx];
|
||||
return &tokenbuf[tokidx-n];
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user