Skip to content

Commit

Permalink
pythongh-110093: Partially revert previous change in socketmodule.c (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Oct 20, 2023
1 parent d731579 commit cb4f746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,9 @@ 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__ */
return PyLong_FromLong(_BT_HCI_MEMB(a, dev));
PyObject *ret = NULL;
ret = Py_BuildValue("i", _BT_HCI_MEMB(a, dev));
return ret;
#endif /* !(__NetBSD__ || __DragonFly__) */
}

Expand Down

0 comments on commit cb4f746

Please sign in to comment.