aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Python/ceval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 3b67a6b79bf..9e4c2666ac6 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4744,8 +4744,7 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
Py_DECREF(defaults);
return NULL;
}
- PyCodeObject *code = (PyCodeObject *)_co;
- assert ((code->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
+ assert ((((PyCodeObject *)_co)->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
if (locals == NULL) {
locals = globals;
}