mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix erroneus argument parsing of socket.htons() on 64bit big endian
machines.
This commit is contained in:
parent
c6f066f9a3
commit
a7b673f47c
1 changed files with 1 additions and 1 deletions
|
@ -2813,7 +2813,7 @@ Convert a 32-bit integer from network to host byte order.");
|
|||
static PyObject *
|
||||
socket_htons(PyObject *self, PyObject *args)
|
||||
{
|
||||
unsigned long x1, x2;
|
||||
int x1, x2;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "i:htons", &x1)) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue