Skip to content

Commit f5161e3

Browse files
committed
Move assert before use.
1 parent 4ee84ab commit f5161e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,8 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
10361036
py_frame.f_funcobj = Py_None;
10371037
py_frame.f_locals = NULL;
10381038
py_frame.frame_obj = NULL;
1039-
py_frame.f_code = tstate->interp->interpreter_trampoline;
10401039
assert(tstate->interp->interpreter_trampoline != NULL);
1040+
py_frame.f_code = tstate->interp->interpreter_trampoline;
10411041
_Py_CODEUNIT *code = _PyCode_CODE(tstate->interp->interpreter_trampoline);
10421042
py_frame.prev_instr = code;
10431043
py_frame.stacktop = 0;

0 commit comments

Comments
 (0)