From 828ce16dc8063f11a2743cfd8fc698e0afa23cac Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Fri, 18 May 2018 13:11:02 +1000
Subject: [PATCH] py/compile: Change comment about ITER_BUF_NSLOTS to a static
 assertion.

---
 py/compile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
GitLab