Avoid casting warning from mrb_int to int in io.c.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-01-31 09:26:05 +09:00
parent c0a6439a69
commit 724c90f369
+1 -1
View File
@@ -159,7 +159,7 @@ mrb_io_mode_to_flags(mrb_state *mrb, mrb_value mode)
}
else {
int flags = 0;
int flags0 = mrb_int(mrb, mode);
mrb_int flags0 = mrb_int(mrb, mode);
switch (flags0 & MRB_O_ACCMODE) {
case MRB_O_RDONLY: