]> granicus.if.org Git - python/commitdiff
Fixed the use of _Py_IS_ALIGNED (issue #27097).
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 May 2016 17:35:44 +0000 (20:35 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 May 2016 17:35:44 +0000 (20:35 +0300)
Python/ceval.c

index 96e084263132d5429c9a521947727f330c86714c..5f8dbcd1526163e9aa64c2fc0611fef37b0643b5 100644 (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,