diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-12-12 22:51:39 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-12-12 22:51:39 (GMT) |
commit | 6c3145985f53d0e9a641f52894d3da4fa7a895bc (patch) | |
tree | 79941cc1150e6e820ecd433e8485db18f499b992 | |
parent | 3339fc94b3522c8f8fa52489f81859205c201b90 (diff) | |
download | cpython-6c3145985f53d0e9a641f52894d3da4fa7a895bc.zip cpython-6c3145985f53d0e9a641f52894d3da4fa7a895bc.tar.gz cpython-6c3145985f53d0e9a641f52894d3da4fa7a895bc.tar.bz2 |
Shut up gcc warning.
-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; } |