From c69661725a9d505d8f33a4a220d5489cb1de750f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 20 Mar 2004 22:34:14 +0000 Subject: Fix for SF 780407. Change %08l to %p to print a pointer. Will backport to 2.3. --- Parser/grammar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/grammar.c b/Parser/grammar.c index 659a151..c0613df 100644 --- a/Parser/grammar.c +++ b/Parser/grammar.c @@ -104,7 +104,7 @@ addlabel(labellist *ll, int type, char *str) lb->lb_type = type; lb->lb_str = strdup(str); if (Py_DebugFlag) - printf("Label @ %08x, %d: %s\n", (unsigned)ll, ll->ll_nlabels, + printf("Label @ %8p, %d: %s\n", ll, ll->ll_nlabels, PyGrammar_LabelRepr(lb)); return lb - ll->ll_label; } -- cgit v0.12