]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (#147704)
authorsunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Wed, 1 Apr 2026 13:12:44 +0000 (21:12 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 13:12:44 +0000 (15:12 +0200)
Fix format specifier in parse_task_name() for long result.

Modules/_remote_debugging_module.c

index 3706a287c3a1ed2b61912af7e2b641f7f815279e..a32777225817ea6f77daed91e756aed8cf981a7b 100644 (file)
@@ -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)) {