Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fd7445

Browse files
committed
Fixed pybind11 conditional bug
1 parent 60383ac commit 6fd7445

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_enums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace p11x {
8080
auto ival = PyLong_AsLong(tmp); \
8181
value = decltype(value)(ival); \
8282
Py_DECREF(tmp); \
83-
return !(ival == -1 && !PyErr_Occurred()); \
83+
return !(ival == -1 && PyErr_Occurred()); \
8484
} else { \
8585
return false; \
8686
} \

0 commit comments

Comments
 (0)