mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Avoid casting warning from mrb_int to int in io.c.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user