Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74f2fe6

Browse files
Fixed the use of _Py_IS_ALIGNED (issue #27097).
1 parent f60bf5f commit 74f2fe6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
11701170
assert(PyBytes_Check(co->co_code));
11711171
assert(PyBytes_GET_SIZE(co->co_code) <= INT_MAX);
11721172
assert(PyBytes_GET_SIZE(co->co_code) % 2 == 0);
1173-
assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), unsigned short));
1173+
assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), 2));
11741174
first_instr = (unsigned short*) PyBytes_AS_STRING(co->co_code);
11751175
/*
11761176
f->f_lasti refers to the index of the last instruction,

0 commit comments

Comments
 (0)