Skip to content

Commit 02b8d23

Browse files
committed
Fixing silly oversight.
1 parent f6b6160 commit 02b8d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ unpacking_collector<policy> collect_arguments(Args &&...args) {
13481348
template <typename Derived>
13491349
template <return_value_policy policy, typename... Args>
13501350
object object_api<Derived>::operator()(Args &&...args) const {
1351-
#if defined(NDEBUG) && PY_VERSION_HEX >= 0x03060000
1351+
#if !defined(NDEBUG) && PY_VERSION_HEX >= 0x03060000
13521352
if (!PyGILState_Check()) {
13531353
pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
13541354
}

0 commit comments

Comments
 (0)