From: Jack Jansen Date: Wed, 12 Dec 2001 22:51:39 +0000 (+0000) Subject: Shut up gcc warning. X-Git-Tag: v2.2.1c1~396 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c3145985f53d0e9a641f52894d3da4fa7a895bc;p=thirdparty%2FPython%2Fcpython.git Shut up gcc warning. --- diff --git a/Mac/Modules/ctl/_Ctlmodule.c b/Mac/Modules/ctl/_Ctlmodule.c index c7dfefc7eb3f..3c6ba5e52192 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 2d9c3f4c731b..42213b6d71c1 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; }