summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-09-04 22:25:47 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-09-04 22:25:47 (GMT)
commit9642ecad06f596b3eded6fb2e683d95a4d1b911c (patch)
tree55a28d7fb45b4ebc0c5a84bf286127b7fc32e3cd /Mac/Modules
parent1767f9360346cd7e312be20d49bd2538f5864910 (diff)
downloadcpython-9642ecad06f596b3eded6fb2e683d95a4d1b911c.zip
cpython-9642ecad06f596b3eded6fb2e683d95a4d1b911c.tar.gz
cpython-9642ecad06f596b3eded6fb2e683d95a4d1b911c.tar.bz2
Shut up a few more gcc warnings.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/cf/_CFmodule.c2
-rw-r--r--Mac/Modules/cf/cfsupport.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c
index 24083bf..124f9dc 100644
--- a/Mac/Modules/cf/_CFmodule.c
+++ b/Mac/Modules/cf/_CFmodule.c
@@ -272,7 +272,7 @@ static int CFTypeRefObj_compare(CFTypeRefObject *self, CFTypeRefObject *other)
static PyObject * CFTypeRefObj_repr(CFTypeRefObject *self)
{
char buf[100];
- sprintf(buf, "<CFTypeRef type-%d object at 0x%08.8x for 0x%08.8x>", CFGetTypeID(self->ob_itself), self, self->ob_itself);
+ 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);
return PyString_FromString(buf);
}
diff --git a/Mac/Modules/cf/cfsupport.py b/Mac/Modules/cf/cfsupport.py
index f6fdaea..18361fe 100644
--- a/Mac/Modules/cf/cfsupport.py
+++ b/Mac/Modules/cf/cfsupport.py
@@ -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()