summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 6ca855f669..2b61319e0c 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;