mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user