Skip to content

Commit 592e328

Browse files
committed
Update assert
1 parent 511733c commit 592e328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ translate_bytecode_to_trace(
777777
uint32_t next_inst = target + 1 + INLINE_CACHE_ENTRIES_FOR_ITER + (oparg > 255);
778778
uint32_t jump_target = next_inst + oparg;
779779
assert(_Py_GetBaseCodeUnit(code, jump_target).op.code == END_FOR);
780-
assert(_Py_GetBaseCodeUnit(code, jump_target+1).op.code == POP_TOP);
780+
assert(_Py_GetBaseCodeUnit(code, jump_target+1).op.code == POP_ITER);
781781
}
782782
#endif
783783
break;

0 commit comments

Comments
 (0)