summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 7203d8c4e9..bfd3fe7f61 100644
--- a/hash.c
+++ b/hash.c
@@ -69,6 +69,9 @@ rb_any_hash(VALUE a)
switch (TYPE(a)) {
case T_FIXNUM:
case T_SYMBOL:
+ case T_NIL:
+ case T_FALSE:
+ case T_TRUE:
hnum = (int)a;
break;