bpo-40421: Cleanup PyFrame C API (GH-32417)

This commit is contained in:
Victor Stinner 2022-04-19 09:53:10 +02:00 committed by GitHub
parent 7fbc7f6128
commit aa5c0a9f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 18 deletions

View file

@ -1160,7 +1160,7 @@ PyFrame_GetLasti(PyFrameObject *frame)
if (lasti < 0) {
return -1;
}
return lasti*2;
return lasti * sizeof(_Py_CODEUNIT);
}
PyObject *