Commit a7b673f4 authored by Hye-Shik Chang's avatar Hye-Shik Chang

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

machines.
parent c6f066f9
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment