diff options
-rw-r--r-- | Mac/Modules/ctl/_Ctlmodule.c | 4 | ||||
-rw-r--r-- | 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; } |