Skip to content

Commit 756e7d1

Browse files
authored
Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)
1 parent 726e8e8 commit 756e7d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_remote_debugging/threads.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ unwind_stack_for_thread(
405405
goto error;
406406
}
407407
// Update last_profiled_frame for next sample
408-
uintptr_t lpf_addr = *current_tstate + unwinder->debug_offsets.thread_state.last_profiled_frame;
408+
uintptr_t lpf_addr =
409+
*current_tstate + (uintptr_t)unwinder->debug_offsets.thread_state.last_profiled_frame;
409410
if (_Py_RemoteDebug_WriteRemoteMemory(&unwinder->handle, lpf_addr,
410411
sizeof(uintptr_t), &frame_addr) < 0) {
411412
PyErr_Clear(); // Non-fatal

0 commit comments

Comments
 (0)