Shut up gcc warning.

This commit is contained in:
Jack Jansen 2001-12-12 22:51:39 +00:00
parent 3339fc94b3
commit 6c3145985f
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}