summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2004-03-20 22:34:14 (GMT)
committerGuido van Rossum <guido@python.org>2004-03-20 22:34:14 (GMT)
commitc69661725a9d505d8f33a4a220d5489cb1de750f (patch)
tree9944892010541e5075019d23bb52cca6ecbc1e36 /Parser
parent70d172dda45477995e5c2f0448810d90644eb447 (diff)
downloadcpython-c69661725a9d505d8f33a4a220d5489cb1de750f.zip
cpython-c69661725a9d505d8f33a4a220d5489cb1de750f.tar.gz
cpython-c69661725a9d505d8f33a4a220d5489cb1de750f.tar.bz2
Fix for SF 780407.
Change %08l to %p to print a pointer. Will backport to 2.3.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/grammar.c2
1 files changed, 1 insertions, 1 deletions
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;
}