aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index acaa27a419..d8fcf56685 100644
--- a/marshal.c
+++ b/marshal.c
@@ -777,7 +777,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
return;
}
- if (obj == Qnil) {
+ if (NIL_P(obj)) {
w_byte(TYPE_NIL, arg);
}
else if (obj == Qtrue) {