]> granicus.if.org Git - python/commitdiff
Fix for SF 780407.
authorGuido van Rossum <guido@python.org>
Sat, 20 Mar 2004 22:34:14 +0000 (22:34 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 20 Mar 2004 22:34:14 +0000 (22:34 +0000)
Change %08l to %p to print a pointer.
Will backport to 2.3.

Parser/grammar.c

index 659a1511345396ee3ff9bdd8096d8b4ecf210db9..c0613dfcfe1b1cfab4eafb8da9654087e16d8ff6 100644 (file)
@@ -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;
 }