mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
fix datatype mismatch
This commit is contained in:
parent
9858df2f80
commit
0f5858e3a3
@ -251,7 +251,11 @@ static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_
|
||||
|
||||
return (ret == SOCK_CONN_ERR) ? -1 : ret;
|
||||
}
|
||||
#ifdef PHP_WIN32
|
||||
return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret;
|
||||
#else
|
||||
return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags,
|
||||
|
Loading…
Reference in New Issue
Block a user