diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-10 01:07:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-10 01:07:57 +0000 |
commit | d3f3dfb899f004e1292dc30c19a67552cef89dee (patch) | |
tree | 9c4a24580b1048ba33ea6c3d4c7c18065bee9bb3 /eval.c | |
parent | 9cc49519474039c651b801fae365db378f6178a9 (diff) | |
download | ruby-d3f3dfb899f004e1292dc30c19a67552cef89dee.tar.gz |
eval.c: use rb_ident_hash_new
* eval.c (hidden_identity_hash_new): use rb_ident_hash_new instead
of funcall Hash#compare_by_id.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1088,9 +1088,8 @@ rb_mod_prepend(int argc, VALUE *argv, VALUE module) static VALUE hidden_identity_hash_new(void) { - VALUE hash = rb_hash_new(); + VALUE hash = rb_ident_hash_new(); - rb_funcall(hash, rb_intern("compare_by_identity"), 0); RBASIC_CLEAR_CLASS(hash); /* hide from ObjectSpace */ return hash; } |