From: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Date: Wed, 1 Apr 2026 13:12:44 +0000 (+0800) Subject: [3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (#147704) X-Git-Tag: v3.14.4~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b406d85603d5099e415da04e7b6559a51f145595;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (#147704) Fix format specifier in parse_task_name() for long result. --- diff --git a/Modules/_remote_debugging_module.c b/Modules/_remote_debugging_module.c index 3706a287c3a1..a32777225817 100644 --- a/Modules/_remote_debugging_module.c +++ b/Modules/_remote_debugging_module.c @@ -934,7 +934,7 @@ parse_task_name( set_exception_cause(unwinder, PyExc_RuntimeError, "Task name PyLong parsing failed"); return NULL; } - return PyUnicode_FromFormat("Task-%d", res); + return PyUnicode_FromFormat("Task-%ld", res); } if(!(GET_MEMBER(unsigned long, type_obj, unwinder->debug_offsets.type_object.tp_flags) & Py_TPFLAGS_UNICODE_SUBCLASS)) {