mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)
This commit is contained in:
parent
726e8e8def
commit
756e7d1f3b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue