diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-13 08:10:35 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-13 08:10:35 +0900 |
| commit | c66978521d4d891643ae58d4b3c49179703579ca (patch) | |
| tree | e6b53eca3f3a11e2ce5f202c1f4d25dd675ca987 /mrbgems/mruby-io/src/file.c | |
| parent | 5a5adafabf754163e9ce9022236a6e52b4e66a0b (diff) | |
| download | mruby-c66978521d4d891643ae58d4b3c49179703579ca.tar.gz mruby-c66978521d4d891643ae58d4b3c49179703579ca.zip | |
Reduce VC++ type mismatch warnings.
Diffstat (limited to 'mrbgems/mruby-io/src/file.c')
| -rw-r--r-- | mrbgems/mruby-io/src/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c index bcfd42408..4f9af10af 100644 --- a/mrbgems/mruby-io/src/file.c +++ b/mrbgems/mruby-io/src/file.c @@ -305,9 +305,9 @@ mrb_file_flock(mrb_state *mrb, mrb_value self) int fd; mrb_get_args(mrb, "i", &operation); - fd = mrb_fixnum(mrb_io_fileno(mrb, self)); + fd = (int)mrb_fixnum(mrb_io_fileno(mrb, self)); - while (flock(fd, operation) == -1) { + while (flock(fd, (int)operation) == -1) { switch (errno) { case EINTR: /* retry */ |
