From: Serhiy Storchaka Date: Wed, 25 May 2016 17:35:44 +0000 (+0300) Subject: Fixed the use of _Py_IS_ALIGNED (issue #27097). X-Git-Tag: v3.6.0a2~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74f2fe64899c3d5c083af8f839af8b79c700fa6d;p=thirdparty%2FPython%2Fcpython.git Fixed the use of _Py_IS_ALIGNED (issue #27097). --- diff --git a/Python/ceval.c b/Python/ceval.c index 96e084263132..5f8dbcd15261 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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,