From 8e6e8e628888aa251f771ce8b3fe30a6b41a7a0e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Sep 2011 11:07:45 +0000 Subject: * use RB_TYPE_P which is optimized for constant types, instead of comparison with TYPE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33357 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 ab17534b36..437f534f1d 100644 --- a/parse.y +++ b/parse.y @@ -5152,7 +5152,7 @@ debug_lines(const char *f) CONST_ID(script_lines, "SCRIPT_LINES__"); if (rb_const_defined_at(rb_cObject, script_lines)) { VALUE hash = rb_const_get_at(rb_cObject, script_lines); - if (TYPE(hash) == T_HASH) { + if (RB_TYPE_P(hash, T_HASH)) { VALUE fname = rb_str_new2(f); VALUE lines = rb_ary_new(); rb_hash_aset(hash, fname, lines); -- cgit v1.2.3