Skip to content

Commit 08ea6ca

Browse files
committed
Make clang-tidy happy
1 parent f7e3d89 commit 08ea6ca

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
@@ -154,7 +154,7 @@ inline PyThreadState *get_thread_state_unchecked() {
154154
}
155155

156156
inline PyInterpreterState *get_interpreter_state_unchecked() {
157-
auto tstate = get_thread_state_unchecked();
157+
auto *tstate = get_thread_state_unchecked();
158158
return tstate ? tstate->interp : nullptr;
159159
}
160160

@@ -163,7 +163,7 @@ inline object get_python_state_dict() {
163163
#if defined(PYPY_VERSION) || defined(GRAALVM_PYTHON)
164164
state_dict = reinterpret_borrow<object>(PyEval_GetBuiltins());
165165
#else
166-
auto istate = get_interpreter_state_unchecked();
166+
auto *istate = get_interpreter_state_unchecked();
167167
if (istate) {
168168
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
169169
}

0 commit comments

Comments
 (0)