Skip to content

Commit 018c538

Browse files
committed
Fix wrong return type.
1 parent 1fa202f commit 018c538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bison/c/bison_callback.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ PyObject* py_callback(PyObject *parser, char *target, int option, int nargs, ...
152152
PyObject *exc = PyErr_Occurred();
153153
if(unlikely(exc)){
154154
printf("exception in callback!!\n");
155-
return -1;
155+
return NULL;
156156
}
157157
Py_DECREF(handle);
158158
Py_DECREF(arglist);

0 commit comments

Comments
 (0)