aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 02:17:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 02:17:58 +0000
commit4a0ea31319df8b64a17766937349059877b7a9da (patch)
treecdf739a43f552a3ceb4fa3bd21c3e70530158985 /parse.y
parentb1d5c752fbafe0433508e6719d576072fd938e01 (diff)
downloadruby-4a0ea31319df8b64a17766937349059877b7a9da.tar.gz
* parse.y (debug_lines): use rb_hash_lookup() to get rid of
call of Hash#default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12751 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 70c0850b37..8fdd12e17a 100644
--- a/parse.y
+++ b/parse.y
@@ -4597,7 +4597,7 @@ debug_lines(VALUE f)
VALUE hash = rb_const_get_at(rb_cObject, rb_intern("SCRIPT_LINES__"));
if (TYPE(hash) == T_HASH) {
VALUE fname = rb_str_new2((const char *)f);
- VALUE lines = rb_hash_aref(hash, fname);
+ VALUE lines = rb_hash_lookup(hash, fname);
if (NIL_P(lines)) {
lines = rb_ary_new();
rb_hash_aset(hash, fname, lines);