Fix erroneus argument parsing of socket.htons() on 64bit big endian

machines.
This commit is contained in:
Hye-Shik Chang 2003-12-17 09:40:23 +00:00
parent c6f066f9a3
commit a7b673f47c

View file

@ -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;