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