Fixed the use of _Py_IS_ALIGNED (issue #27097).

This commit is contained in:
Serhiy Storchaka 2016-05-25 20:35:44 +03:00
parent f60bf5f7d6
commit 74f2fe6489
1 changed files with 1 additions and 1 deletions

View File

@ -1170,7 +1170,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
assert(PyBytes_Check(co->co_code));
assert(PyBytes_GET_SIZE(co->co_code) <= INT_MAX);
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);
/*
f->f_lasti refers to the index of the last instruction,