mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
gh-110093: Replace trivial Py_BuildValue() with direct C API call (GH-110094)
This commit is contained in:
parent
ff4e53cb74
commit
59ea0f523e
13 changed files with 33 additions and 32 deletions
|
@ -1489,9 +1489,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
|
|||
#if defined(__NetBSD__) || defined(__DragonFly__)
|
||||
return makebdaddr(&_BT_HCI_MEMB(a, bdaddr));
|
||||
#else /* __NetBSD__ || __DragonFly__ */
|
||||
PyObject *ret = NULL;
|
||||
ret = Py_BuildValue("i", _BT_HCI_MEMB(a, dev));
|
||||
return ret;
|
||||
return PyLong_FromLong(_BT_HCI_MEMB(a, dev));
|
||||
#endif /* !(__NetBSD__ || __DragonFly__) */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue