aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 36fd511bfa..08c96d5393 100644
--- a/vm.c
+++ b/vm.c
@@ -149,7 +149,8 @@ vm_stat(int argc, VALUE *argv, VALUE self)
hash = arg;
else
rb_raise(rb_eTypeError, "non-hash or symbol given");
- } else if (arg == Qnil) {
+ }
+ else if (NIL_P(arg)) {
hash = rb_hash_new();
}