bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720)

This commit is contained in:
Serhiy Storchaka 2021-10-04 14:11:26 +03:00 committed by GitHub
parent 9be930f9b1
commit 252b7bcb23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 13 deletions

View file

@ -7081,7 +7081,7 @@ assemble_line_range(struct assembler* a, int current, PyObject** table,
int* prev, int* start, int* offset)
{
int ldelta, bdelta;
bdelta = (a->a_offset - *start) * 2;
bdelta = (a->a_offset - *start) * sizeof(_Py_CODEUNIT);
if (bdelta == 0) {
return 1;
}