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

Skip to content

Commit 1637932

Browse files
authored
Merge pull request #31558 from meeseeksmachine/auto-backport-of-pr-31556-on-v3.10.x
Backport PR #31556 on branch v3.10.x (FIX: Inverted PyErr_Occurred check in enum type caster (_enums.h))
2 parents a4f57ab + a83faac commit 1637932

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)