Skip to content

Commit 828ce16

Browse files
committed
py/compile: Change comment about ITER_BUF_NSLOTS to a static assertion.
1 parent 43d08d6 commit 828ce16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3052,7 +3052,7 @@ STATIC void compile_scope(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
30523052
// There are 4 slots on the stack for the iterator, and the first one is
30533053
// NULL to indicate that the second one points to the iterator object.
30543054
if (scope->kind == SCOPE_GEN_EXPR) {
3055-
// TODO static assert that MP_OBJ_ITER_BUF_NSLOTS == 4
3055+
MP_STATIC_ASSERT(MP_OBJ_ITER_BUF_NSLOTS == 4);
30563056
EMIT(load_null);
30573057
compile_load_id(comp, qstr_arg);
30583058
EMIT(load_null);

0 commit comments

Comments
 (0)