summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-12 03:00:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-12 03:00:22 +0000
commit299d96cadd2015b0f40ceae322c7551bf55a0223 (patch)
tree47cfba798542c5613f8dc1ef6776834304028247
parent6ff25d132de8676d6df5b4f70508a2adfdb55e45 (diff)
parse.y: non-shady ruby_debug_lines
* parse.y (parser_set_encode): get rid of making ruby_debug_lines non-shady. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 9ee813d3a0..d6a8a0374c 100644
--- a/parse.y
+++ b/parse.y
@@ -6562,10 +6562,10 @@ parser_set_encode(struct parser_params *parser, const char *name)
parser->enc = enc;
#ifndef RIPPER
if (ruby_debug_lines) {
- long i, n = RARRAY_LEN(ruby_debug_lines);
- const VALUE *p = RARRAY_PTR(ruby_debug_lines);
+ VALUE lines = ruby_debug_lines;
+ long i, n = RARRAY_LEN(lines);
for (i = 0; i < n; ++i) {
- rb_enc_associate_index(*p, idx);
+ rb_enc_associate_index(RARRAY_AREF(lines, i), idx);
}
}
#endif