Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60383ac commit 6fd7445Copy full SHA for 6fd7445
1 file changed
src/_enums.h
@@ -80,7 +80,7 @@ namespace p11x {
80
auto ival = PyLong_AsLong(tmp); \
81
value = decltype(value)(ival); \
82
Py_DECREF(tmp); \
83
- return !(ival == -1 && !PyErr_Occurred()); \
+ return !(ival == -1 && PyErr_Occurred()); \
84
} else { \
85
return false; \
86
} \
0 commit comments