summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 2736d65..f91cc6d 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -202,11 +202,11 @@ func_repr(op)
{
char buf[140];
if (op->func_name == Py_None)
- sprintf(buf, "<anonymous function at %lx>", (long)op);
+ sprintf(buf, "<anonymous function at %p>", op);
else
- sprintf(buf, "<function %.100s at %lx>",
+ sprintf(buf, "<function %.100s at %p>",
PyString_AsString(op->func_name),
- (long)op);
+ op);
return PyString_FromString(buf);
}