[Python-checkins] python/dist/src/Modules socketmodule.c, 1.279, 1.280

perky at users.sourceforge.net perky at users.sourceforge.net
Wed Dec 17 04:40:25 EST 2003


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv3617

Modified Files:
	socketmodule.c 
Log Message:
Fix erroneus argument parsing of socket.htons() on 64bit big endian
machines.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.279
retrieving revision 1.280
diff -C2 -d -r1.279 -r1.280
*** socketmodule.c	27 Nov 2003 19:40:22 -0000	1.279
--- socketmodule.c	17 Dec 2003 09:40:23 -0000	1.280
***************
*** 2814,2818 ****
  socket_htons(PyObject *self, PyObject *args)
  {
! 	unsigned long x1, x2;
  
  	if (!PyArg_ParseTuple(args, "i:htons", &x1)) {
--- 2814,2818 ----
  socket_htons(PyObject *self, PyObject *args)
  {
! 	int x1, x2;
  
  	if (!PyArg_ParseTuple(args, "i:htons", &x1)) {





More information about the Python-checkins mailing list