diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-17 09:40:23 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-17 09:40:23 (GMT) |
commit | a7b673f47c9fe7f597bb56a1babb91943183283d (patch) | |
tree | 56cf7d856262c2e86a4889649b610089cb3bd8fc /Modules | |
parent | c6f066f9a3d9f4b774548477c1e2f7d140828e6d (diff) | |
download | cpython-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.c | 2 |
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; |