summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-13 09:20:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-13 09:20:59 +0000
commit525f6818fa01c3602637adcbdb1f2672ab704bda (patch)
tree1360614a5102134fba13747a79b77bf87a93bd48 /parse.y
parent243f42fce18892aadb86e763971bf27c03648fa5 (diff)
* parse.y (parser_magic_comment): fixed normalization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 07ee4bc08f..a044e71959 100644
--- a/parse.y
+++ b/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 {