Merge pull request #2273 from suzukaze/refactor-range.c

Use boolean macro in mrb_range_initialize()
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-05-17 13:05:28 +09:00
+1 -1
View File
@@ -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);