From 9642ecad06f596b3eded6fb2e683d95a4d1b911c Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 4 Sep 2001 22:25:47 +0000 Subject: [PATCH] Shut up a few more gcc warnings. --- Mac/Modules/cf/_CFmodule.c | 2 +- Mac/Modules/cf/cfsupport.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c index 24083bff0ba..124f9dc5052 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, "", CFGetTypeID(self->ob_itself), self, self->ob_itself); + sprintf(buf, "", 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 f6fdaea3cf0..18361feae94 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, "", CFGetTypeID(self->ob_itself), self, self->ob_itself);""") + Output("""sprintf(buf, "", CFGetTypeID(self->ob_itself), (unsigned long)self, (unsigned long)self->ob_itself);""") Output("return PyString_FromString(buf);") OutRbrace()