Skip to content

Commit e8b34b4

Browse files
committed
Shuffle subexpressions to make the condition easier to understand (no change to logic).
1 parent 1c5bc85 commit e8b34b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/detail/internals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ inline void translate_local_exception(std::exception_ptr p) {
428428

429429
inline object get_python_state_dict() {
430430
object state_dict;
431-
#if (PYBIND11_INTERNALS_VERSION <= 4 && PY_VERSION_HEX < 0x030C0000) \
432-
|| PY_VERSION_HEX < 0x03080000 || defined(PYPY_VERSION)
431+
#if PY_VERSION_HEX < 0x03080000 \
432+
|| (PYBIND11_INTERNALS_VERSION <= 4 && PY_VERSION_HEX < 0x030C0000) || defined(PYPY_VERSION)
433433
state_dict = reinterpret_borrow<object>(PyEval_GetBuiltins());
434434
#else
435435
# if PY_VERSION_HEX < 0x03090000

0 commit comments

Comments
 (0)