mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fixed the use of _Py_IS_ALIGNED (issue #27097).
This commit is contained in:
parent
f60bf5f7d6
commit
74f2fe6489
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue