summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/frame.c')
-rw-r--r--Python/frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/frame.c b/Python/frame.c
index d792b92..b84fd9b 100644
--- a/Python/frame.c
+++ b/Python/frame.c
@@ -146,10 +146,10 @@ _PyFrame_ClearExceptCode(_PyInterpreterFrame *frame)
/* Unstable API functions */
-PyCodeObject *
+PyObject *
PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame)
{
- PyCodeObject *code = frame->f_code;
+ PyObject *code = (PyObject *)frame->f_code;
Py_INCREF(code);
return code;
}