summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-10-04 11:11:26 (GMT)
committerGitHub <noreply@github.com>2021-10-04 11:11:26 (GMT)
commit252b7bcb236dc261f3af1275bc90f9a303d9648f (patch)
treee259c0287bf2b02f7998d5ec9ae00a1c80d79af1 /Python/compile.c
parent9be930f9b169fb3d92693670ae069df902709b83 (diff)
downloadcpython-252b7bcb236dc261f3af1275bc90f9a303d9648f.zip
cpython-252b7bcb236dc261f3af1275bc90f9a303d9648f.tar.gz
cpython-252b7bcb236dc261f3af1275bc90f9a303d9648f.tar.bz2
bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index fdc2ce6..694da29 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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;
}