aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 86a877a165..af88e4b3a8 100644
--- a/eval.c
+++ b/eval.c
@@ -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;
}