summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2003-12-17 09:40:23 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2003-12-17 09:40:23 (GMT)
commita7b673f47c9fe7f597bb56a1babb91943183283d (patch)
tree56cf7d856262c2e86a4889649b610089cb3bd8fc /Modules
parentc6f066f9a3d9f4b774548477c1e2f7d140828e6d (diff)
downloadcpython-a7b673f47c9fe7f597bb56a1babb91943183283d.zip
cpython-a7b673f47c9fe7f597bb56a1babb91943183283d.tar.gz
cpython-a7b673f47c9fe7f597bb56a1babb91943183283d.tar.bz2
Fix erroneus argument parsing of socket.htons() on 64bit big endian
machines.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 6ca855f..2b61319 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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;