From 661329478d5835e52cf0c92b783dea276c6b9ac5 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Mon, 8 Dec 2025 17:52:27 -0500 Subject: [PATCH] Silence warning on conversion from uint64_t to uintptr_t --- Modules/_remote_debugging/threads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/_remote_debugging/threads.c b/Modules/_remote_debugging/threads.c index 953c8a383f0cbc..f564e3a7256fa7 100644 --- a/Modules/_remote_debugging/threads.c +++ b/Modules/_remote_debugging/threads.c @@ -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