[Python-checkins] CVS: python/dist/src/Mac/Modules/win winsupport.py,1.26,1.27

Jack Jansen jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 03:31:20 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/win
In directory usw-pr-cvs1:/tmp/cvs-serv11964/python/Mac/Modules/win

Modified Files:
	winsupport.py 
Log Message:
Shut up many more gcc warnings.

Index: winsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/winsupport.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** winsupport.py	2001/08/23 13:51:46	1.26
--- winsupport.py	2001/09/05 10:31:18	1.27
***************
*** 180,184 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<Window object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 180,184 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<Window object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 209,213 ****
  if ( !PyArg_ParseTuple(_args, "i", &ptr) )
  	return NULL;
! return WinObj_WhichWindow((WindowPtr)ptr);
  """
  
--- 209,214 ----
  if ( !PyArg_ParseTuple(_args, "i", &ptr) )
  	return NULL;
! _res = WinObj_WhichWindow((WindowPtr)ptr);
! return _res;
  """