summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-19 07:53:10 (GMT)
committerGitHub <noreply@github.com>2022-04-19 07:53:10 (GMT)
commitaa5c0a9f8dd935a7afff07abb5a60d492c40f2cb (patch)
tree4c407b6406a15c5d8ed07568f90c1550acd6e9b1 /Objects
parent7fbc7f61280d301c0ac88b65ee8747fcf19f01f8 (diff)
downloadcpython-aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb.zip
cpython-aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb.tar.gz
cpython-aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb.tar.bz2
bpo-40421: Cleanup PyFrame C API (GH-32417)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/frameobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index dc4ef8b..e65395e 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -1160,7 +1160,7 @@ PyFrame_GetLasti(PyFrameObject *frame)
if (lasti < 0) {
return -1;
}
- return lasti*2;
+ return lasti * sizeof(_Py_CODEUNIT);
}
PyObject *