[Python-checkins] CVS: python/dist/src/Mac/Modules/cf cfsupport.py,1.9,1.10
Jack Jansen
jackjansen@users.sourceforge.net
Tue, 04 Sep 2001 15:25:49 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/cf
In directory usw-pr-cvs1:/tmp/cvs-serv16045/Python/Mac/Modules/cf
Modified Files:
cfsupport.py
Log Message:
Shut up a few more gcc warnings.
Index: cfsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cf/cfsupport.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** cfsupport.py 2001/09/04 22:19:18 1.9
--- cfsupport.py 2001/09/04 22:25:47 1.10
***************
*** 191,195 ****
OutLbrace()
Output("char buf[100];")
! Output("""sprintf(buf, "<CFTypeRef type-%%d object at 0x%%08.8x for 0x%%08.8x>", CFGetTypeID(self->ob_itself), self, self->ob_itself);""")
Output("return PyString_FromString(buf);")
OutRbrace()
--- 191,195 ----
OutLbrace()
Output("char buf[100];")
! Output("""sprintf(buf, "<CFTypeRef type-%%d object at 0x%%8.8x for 0x%%8.8x>", CFGetTypeID(self->ob_itself), (unsigned long)self, (unsigned long)self->ob_itself);""")
Output("return PyString_FromString(buf);")
OutRbrace()