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

parent c0a6439a
...@@ -159,7 +159,7 @@ mrb_io_mode_to_flags(mrb_state *mrb, mrb_value mode) ...@@ -159,7 +159,7 @@ mrb_io_mode_to_flags(mrb_state *mrb, mrb_value mode)
} }
else { else {
int flags = 0; int flags = 0;
int flags0 = mrb_int(mrb, mode); mrb_int flags0 = mrb_int(mrb, mode);
switch (flags0 & MRB_O_ACCMODE) { switch (flags0 & MRB_O_ACCMODE) {
case MRB_O_RDONLY: case MRB_O_RDONLY:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment