Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)

This commit is contained in:
AZero13 2025-12-09 05:18:51 -05:00 committed by GitHub
parent 726e8e8def
commit 756e7d1f3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -405,7 +405,8 @@ unwind_stack_for_thread(
goto error;
}
// Update last_profiled_frame for next sample
uintptr_t lpf_addr = *current_tstate + unwinder->debug_offsets.thread_state.last_profiled_frame;
uintptr_t lpf_addr =
*current_tstate + (uintptr_t)unwinder->debug_offsets.thread_state.last_profiled_frame;
if (_Py_RemoteDebug_WriteRemoteMemory(&unwinder->handle, lpf_addr,
sizeof(uintptr_t), &frame_addr) < 0) {
PyErr_Clear(); // Non-fatal