Skip to content

Commit 8ebdba5

Browse files
committed
Fix format specifier in parse_task_name() for PyLong result
1 parent 25b48b8 commit 8ebdba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_remote_debugging_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ parse_task_name(
934934
set_exception_cause(unwinder, PyExc_RuntimeError, "Task name PyLong parsing failed");
935935
return NULL;
936936
}
937-
return PyUnicode_FromFormat("Task-%d", res);
937+
return PyUnicode_FromFormat("Task-%ld", res);
938938
}
939939

940940
if(!(GET_MEMBER(unsigned long, type_obj, unwinder->debug_offsets.type_object.tp_flags) & Py_TPFLAGS_UNICODE_SUBCLASS)) {

0 commit comments

Comments
 (0)