summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-01-31 09:26:05 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-01-31 09:26:05 +0900
commit724c90f3699c721113c0c575a8aac0d3ba2895a6 (patch)
tree176aa7af659249d5a24de8c975ecfebca962a6ec
parentc0a6439a693f77be1c4ef77620be00c8433d8da1 (diff)
downloadmruby-724c90f3699c721113c0c575a8aac0d3ba2895a6.tar.gz
mruby-724c90f3699c721113c0c575a8aac0d3ba2895a6.zip
Avoid casting warning from `mrb_int` to `int` in `io.c`.
-rw-r--r--mrbgems/mruby-io/src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/src/io.c b/mrbgems/mruby-io/src/io.c
index 01d89e681..4be41ef31 100644
--- a/mrbgems/mruby-io/src/io.c
+++ b/mrbgems/mruby-io/src/io.c
@@ -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: