Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c696617

Browse files
committed
Fix for SF 780407.
Change %08l to %p to print a pointer. Will backport to 2.3.
1 parent 70d172d commit c696617

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/grammar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ addlabel(labellist *ll, int type, char *str)
104104
lb->lb_type = type;
105105
lb->lb_str = strdup(str);
106106
if (Py_DebugFlag)
107-
printf("Label @ %08x, %d: %s\n", (unsigned)ll, ll->ll_nlabels,
107+
printf("Label @ %8p, %d: %s\n", ll, ll->ll_nlabels,
108108
PyGrammar_LabelRepr(lb));
109109
return lb - ll->ll_label;
110110
}

0 commit comments

Comments
 (0)