diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 1120f6b..b48f8a9 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -99,6 +99,7 @@ Local naming conventions: # pragma weak inet_aton #endif +#define PY_SSIZE_T_CLEAN #include "Python.h" #include "structmember.h" @@ -1414,7 +1415,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto) a->sll_pkttype, a->sll_hatype, a->sll_addr, - a->sll_halen); + (Py_ssize_t)a->sll_halen); } #endif /* HAVE_NETPACKET_PACKET_H && SIOCGIFNAME */ |