mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
Shut up a few more gcc warnings.
This commit is contained in:
parent
1767f93603
commit
9642ecad06
2 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ class MyGlobalObjectDefinition(GlobalObjectDefinition):
|
|||
Output("static PyObject * %s_repr(%s *self)", self.prefix, self.objecttype)
|
||||
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("""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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue