diff Modules/socketmodule.c @ 31207:f388e83f8e43 legacy-trunk

Fix erroneus argument parsing of socket.htons() on 64bit big endian machines.
author Hye-Shik Chang <hyeshik@gmail.com>
date Wed, 17 Dec 2003 09:40:23 +0000
parents bf038986cb8f
children 24d34ab4ef75
line wrap: on
line diff
--- a/Modules/socketmodule.c	Wed Dec 17 02:49:03 2003 +0000
+++ b/Modules/socketmodule.c	Wed Dec 17 09:40:23 2003 +0000
@@ -2813,7 +2813,7 @@
 static PyObject *
 socket_htons(PyObject *self, PyObject *args)
 {
-	unsigned long x1, x2;
+	int x1, x2;
 
 	if (!PyArg_ParseTuple(args, "i:htons", &x1)) {
 		return NULL;