Commit 6c314598 authored by Jack Jansen's avatar Jack Jansen

Shut up gcc warning.

parent 3339fc94
...@@ -5203,12 +5203,12 @@ callcallback(ControlObject *self, OSType which, PyObject *arglist) ...@@ -5203,12 +5203,12 @@ callcallback(ControlObject *self, OSType which, PyObject *arglist)
sprintf(keybuf, "%x", (unsigned)which); sprintf(keybuf, "%x", (unsigned)which);
if ( self->ob_callbackdict == NULL || if ( self->ob_callbackdict == NULL ||
(func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == 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; return NULL;
} }
rv = PyEval_CallObject(func, arglist); rv = PyEval_CallObject(func, arglist);
if ( rv == NULL ) 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; return rv;
} }
......
...@@ -266,12 +266,12 @@ callcallback(ControlObject *self, OSType which, PyObject *arglist) ...@@ -266,12 +266,12 @@ callcallback(ControlObject *self, OSType which, PyObject *arglist)
sprintf(keybuf, "%x", (unsigned)which); sprintf(keybuf, "%x", (unsigned)which);
if ( self->ob_callbackdict == NULL || if ( self->ob_callbackdict == NULL ||
(func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == 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; return NULL;
} }
rv = PyEval_CallObject(func, arglist); rv = PyEval_CallObject(func, arglist);
if ( rv == NULL ) 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; 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