aboutsummaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index a2e14b32d2..122ed70561 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1458,7 +1458,7 @@ sockaddr_obj(struct sockaddr *addr)
break;
}
#ifdef SA_LEN
- if (len < SA_LEN(addr))
+ if (len < (socklen_t)SA_LEN(addr))
len = SA_LEN(addr);
#endif