From 6c3145985f53d0e9a641f52894d3da4fa7a895bc Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 12 Dec 2001 22:51:39 +0000 Subject: Shut up gcc warning. --- Mac/Modules/ctl/_Ctlmodule.c | 4 ++-- Mac/Modules/ctl/ctlsupport.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mac/Modules/ctl/_Ctlmodule.c b/Mac/Modules/ctl/_Ctlmodule.c index c7dfefc..3c6ba5e 100644 --- a/Mac/Modules/ctl/_Ctlmodule.c +++ b/Mac/Modules/ctl/_Ctlmodule.c @@ -5203,12 +5203,12 @@ callcallback(ControlObject *self, OSType which, PyObject *arglist) sprintf(keybuf, "%x", (unsigned)which); if ( self->ob_callbackdict == NULL || (func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == NULL ) { - PySys_WriteStderr("Control callback %x without callback object\n", which); + PySys_WriteStderr("Control callback %x without callback object\n", (unsigned)which); return NULL; } rv = PyEval_CallObject(func, arglist); if ( rv == NULL ) - PySys_WriteStderr("Exception in control callback %x handler\n", which); + PySys_WriteStderr("Exception in control callback %x handler\n", (unsigned)which); return rv; } diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index 2d9c3f4..42213b6 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -266,12 +266,12 @@ callcallback(ControlObject *self, OSType which, PyObject *arglist) sprintf(keybuf, "%x", (unsigned)which); if ( self->ob_callbackdict == NULL || (func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == NULL ) { - PySys_WriteStderr("Control callback %x without callback object\\n", which); + PySys_WriteStderr("Control callback %x without callback object\\n", (unsigned)which); return NULL; } rv = PyEval_CallObject(func, arglist); if ( rv == NULL ) - PySys_WriteStderr("Exception in control callback %x handler\\n", which); + PySys_WriteStderr("Exception in control callback %x handler\\n", (unsigned)which); return rv; } -- cgit v0.12