From: AZero13 Date: Tue, 9 Dec 2025 10:18:51 +0000 (-0500) Subject: Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437) X-Git-Tag: v3.15.0a3~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=756e7d1f3b2e795fa9ce724335ced2aa837e374e;p=thirdparty%2FPython%2Fcpython.git Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437) --- diff --git a/Modules/_remote_debugging/threads.c b/Modules/_remote_debugging/threads.c index 953c8a383f0c..f564e3a7256f 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