mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (parser_magic_comment): fixed normalization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
243f42fce1
commit
525f6818fa
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Oct 13 18:20:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_magic_comment): fixed normalization.
|
||||
|
||||
Tue Oct 13 09:04:14 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* thread.c: Revert changes to Thread#raise made in r25278
|
||||
|
|
2
parse.y
2
parse.y
|
@ -6251,7 +6251,7 @@ parser_magic_comment(struct parser_params *parser, const char *str, long len)
|
|||
str_copy(name, beg, n);
|
||||
s = RSTRING_PTR(name);
|
||||
for (i = 0; i < n; ++i) {
|
||||
if (*s == '-') *s = '_';
|
||||
if (s[i] == '-') s[i] = '_';
|
||||
}
|
||||
#ifndef RIPPER
|
||||
do {
|
||||
|
|
Loading…
Reference in a new issue