mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720)
This commit is contained in:
parent
9be930f9b1
commit
252b7bcb23
3 changed files with 9 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue