Skip to content

Commit 175a96e

Browse files
committed
Suppress compiler warning
1 parent e1c5ceb commit 175a96e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
19021902
addr->sun_path[path.len] = 0;
19031903

19041904
/* including the tailing NUL */
1905-
*len_ret = path.len + offsetof(struct sockaddr_un, sun_path) + 1;
1905+
*len_ret = (int)path.len + offsetof(struct sockaddr_un, sun_path) + 1;
19061906
}
19071907
addr->sun_family = s->sock_family;
19081908
memcpy(addr->sun_path, path.buf, path.len);

0 commit comments

Comments
 (0)