diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-19 07:53:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 07:53:10 (GMT) |
commit | aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb (patch) | |
tree | 4c407b6406a15c5d8ed07568f90c1550acd6e9b1 /Objects | |
parent | 7fbc7f61280d301c0ac88b65ee8747fcf19f01f8 (diff) | |
download | cpython-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.c | 2 |
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 * |