From a7b673f47c9fe7f597bb56a1babb91943183283d Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Wed, 17 Dec 2003 09:40:23 +0000 Subject: Fix erroneus argument parsing of socket.htons() on 64bit big endian machines. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12