mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use mrb_true_or_false_value() / in mrb_range_excl().
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ mrb_range_excl(mrb_state *mrb, mrb_value range)
|
||||
{
|
||||
struct RRange *r = mrb_range_ptr(range);
|
||||
|
||||
return r->excl ? mrb_true_value() : mrb_false_value();
|
||||
return mrb_true_or_false_value(r->excl);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user