From b2d5851b197808d651e8f78f3e91b2035c3003e7 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Jul 2007 02:17:58 +0000 Subject: * parse.y (debug_lines): use rb_hash_lookup() to get rid of call of Hash#default. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 70c0850b3..8fdd12e17 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); -- cgit