summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index 63b308803..9164f4291 100644
--- a/src/object.c
+++ b/src/object.c
@@ -227,7 +227,7 @@ false_xor(mrb_state *mrb, mrb_value obj)
int obj2;
mrb_get_args(mrb, "b", &obj2);
- return obj2 ? mrb_true_value() : mrb_false_value();
+ return mrb_true_or_false_value(obj2);
}
/* 15.2.4.3.3 */