diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-13 09:20:59 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-13 09:20:59 +0000 |
| commit | 6f06228f84373d752fc54c5e4278137972a1cbd8 (patch) | |
| tree | 1360614a5102134fba13747a79b77bf87a93bd48 /parse.y | |
| parent | e374a31e409bef8576fe6a84f9db2f264a0d2bd3 (diff) | |
| download | ruby-6f06228f84373d752fc54c5e4278137972a1cbd8.tar.gz ruby-6f06228f84373d752fc54c5e4278137972a1cbd8.tar.xz ruby-6f06228f84373d752fc54c5e4278137972a1cbd8.zip | |
* parse.y (parser_magic_comment): fixed normalization.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |
