Commit 3182b1df authored by Jack Jansen's avatar Jack Jansen

Shut up gcc warning.

parent 6ab428ae
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment