summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-05-18 13:11:02 +1000
committerDamien George <damien.p.george@gmail.com>2018-05-18 23:31:00 +1000
commit828ce16dc8063f11a2743cfd8fc698e0afa23cac (patch)
tree55c2c2800aa8e341de563f0dc99d70456c7ec6c0 /py/compile.c
parent43d08d6dd6fab6c88eeb20663ab97d622c2ea915 (diff)
py/compile: Change comment about ITER_BUF_NSLOTS to a static assertion.
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c
index 9200b346b..c2dd914f0 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -3052,7 +3052,7 @@ STATIC void compile_scope(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
// There are 4 slots on the stack for the iterator, and the first one is
// NULL to indicate that the second one points to the iterator object.
if (scope->kind == SCOPE_GEN_EXPR) {
- // TODO static assert that MP_OBJ_ITER_BUF_NSLOTS == 4
+ MP_STATIC_ASSERT(MP_OBJ_ITER_BUF_NSLOTS == 4);
EMIT(load_null);
compile_load_id(comp, qstr_arg);
EMIT(load_null);