https://github.com/python/cpython/commit/756e7d1f3b2e795fa9ce724335ced2aa837e374e
commit: 756e7d1f3b2e795fa9ce724335ced2aa837e374e
branch: main
author: AZero13 <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-12-09T10:18:51Z
summary:
Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)
files:
M Modules/_remote_debugging/threads.c
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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]