diff options
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 4373422..c69a95f 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -130,8 +130,8 @@ code_repr(co) filename = PyString_AsString(co->co_filename); if (co->co_name && PyString_Check(co->co_name)) name = PyString_AsString(co->co_name); - sprintf(buf, "<code object %.100s at %lx, file \"%.300s\", line %d>", - name, (long)co, filename, lineno); + sprintf(buf, "<code object %.100s at %p, file \"%.300s\", line %d>", + name, co, filename, lineno); return PyString_FromString(buf); } |