Fix type int to mrb_int
mruby's default int size is changed after:
implicit cast causes some errors
MODIFY
src/socket.c
src/socket.c
@@ -611,10 +611,10 @@ mrb_socket_connect(mrb_state *mrb, mrb_value klass)
static mrb_value
mrb_socket_listen(mrb_state *mrb, mrb_value klass)
{
- int backlog, s;
+ mrb_int backlog, s;
mrb_get_args(mrb, "ii", &s, &backlog);
- if (listen(s, backlog) == -1) {
+ if (listen((int)s, (int)backlog) == -1) {
mrb_sys_fail(mrb, "listen");
}
return mrb_nil_value();

Fix type int to mrb_int

- mruby's default int size is changed after: https://github.com/mruby/mruby/commit/f0f4a1088a270e339407a24ffe8be748f4764fc2
- implicit cast causes some errors