mirror of https://github.com/python/cpython
Fixed the use of _Py_IS_ALIGNED (issue #27097).
This commit is contained in:
parent
f60bf5f7d6
commit
74f2fe6489
|
@ -1170,7 +1170,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
assert(PyBytes_Check(co->co_code));
|
assert(PyBytes_Check(co->co_code));
|
||||||
assert(PyBytes_GET_SIZE(co->co_code) <= INT_MAX);
|
assert(PyBytes_GET_SIZE(co->co_code) <= INT_MAX);
|
||||||
assert(PyBytes_GET_SIZE(co->co_code) % 2 == 0);
|
assert(PyBytes_GET_SIZE(co->co_code) % 2 == 0);
|
||||||
assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), unsigned short));
|
assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), 2));
|
||||||
first_instr = (unsigned short*) PyBytes_AS_STRING(co->co_code);
|
first_instr = (unsigned short*) PyBytes_AS_STRING(co->co_code);
|
||||||
/*
|
/*
|
||||||
f->f_lasti refers to the index of the last instruction,
|
f->f_lasti refers to the index of the last instruction,
|
||||||
|
|
Loading…
Reference in New Issue