Mercurial > pub > dyncall > bindings
changeset 55:2e8a56976bf8
fixed missing () making branch always be entered
author | Tassilo Philipp |
---|---|
date | Tue, 02 Feb 2021 20:56:54 +0100 |
parents | 918dab7a6606 |
children | 16151547265e |
files | python/pydc/pydc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/pydc/pydc.c Tue Feb 02 20:42:02 2021 +0100 +++ b/python/pydc/pydc.c Tue Feb 02 20:56:54 2021 +0100 @@ -670,7 +670,7 @@ PyErr_SetString(PyExc_RuntimeError, "callback error: unknown error creating python arg tuple"); // as callbacks might be called repeatedly we don't want the error indicator to pollute other calls, so print - if(PyErr_Occurred) { + if(PyErr_Occurred()) { PyErr_Print(); return 'v'; // used as return char for errors @@@ unsure if smart, but it would at least indicate that no return value was set }