ruby-changes:13540
From: nobu <ko1@a...>
Date: Tue, 13 Oct 2009 18:21:12 +0900 (JST)
Subject: [ruby-changes:13540] Ruby:r25318 (trunk): * parse.y (parser_magic_comment): fixed normalization.
nobu 2009-10-13 18:20:59 +0900 (Tue, 13 Oct 2009) New Revision: 25318 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25318 Log: * parse.y (parser_magic_comment): fixed normalization. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 25317) +++ ChangeLog (revision 25318) @@ -1,3 +1,7 @@ +Tue Oct 13 18:20:57 2009 Nobuyoshi Nakada <nobu@r...> + + * parse.y (parser_magic_comment): fixed normalization. + Tue Oct 13 09:04:14 2009 Marc-Andre Lafortune <ruby-core@m...> * thread.c: Revert changes to Thread#raise made in r25278 Index: parse.y =================================================================== --- parse.y (revision 25317) +++ parse.y (revision 25318) @@ -6251,7 +6251,7 @@ 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 { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/