aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 5d6b20cea9..abce6f7eca 100644
--- a/hash.c
+++ b/hash.c
@@ -84,7 +84,7 @@ rb_any_hash(VALUE a)
case T_NIL:
case T_FALSE:
case T_TRUE:
- hnum = (int)a;
+ hnum = rb_hash_end(rb_hash_start((unsigned int)a));
break;
case T_STRING: