]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)
authorAZero13 <gfunni234@gmail.com>
Tue, 9 Dec 2025 10:18:51 +0000 (05:18 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Dec 2025 10:18:51 +0000 (10:18 +0000)
Modules/_remote_debugging/threads.c

index 953c8a383f0cbcf03e82d53dcbf6fe4a32e42b6c..f564e3a7256fa7e0d308c4af62eb4b9c1bf6f789 100644 (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