mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use boolean macro in mrb_range_initialize()
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ mrb_range_initialize(mrb_state *mrb, mrb_value range)
|
||||
|
||||
n = mrb_get_args(mrb, "oo|b", &beg, &end, &exclusive);
|
||||
if (n != 3) {
|
||||
exclusive = 0;
|
||||
exclusive = FALSE;
|
||||
}
|
||||
/* Ranges are immutable, so that they should be initialized only once. */
|
||||
range_init(mrb, range, beg, end, exclusive);
|
||||
|
||||
Reference in New Issue
Block a user