]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix erroneus argument parsing of socket.htons() on 64bit big endian
authorHye-Shik Chang <hyeshik@gmail.com>
Wed, 17 Dec 2003 09:40:23 +0000 (09:40 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Wed, 17 Dec 2003 09:40:23 +0000 (09:40 +0000)
machines.

Modules/socketmodule.c

index 6ca855f6695d3dde1f6be71b2928659e988a0697..2b61319e0c869830ac0c1d4c5a83c03838d662ec 100644 (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;