From 64f2be5afc8a4043e080fb89562466d6f22654bf Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 5 Jun 2022 22:30:18 +0200 Subject: [PATCH] Move variable out of switch This doesn't complie with emcc --- src/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 6019dc2..28290e7 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1682,11 +1682,12 @@ break_inner: read_token_after_cant_handle(p); bool is_rbrace = false; + bool local; switch (p->token.type) { case APFL_TOK_ASSIGN: case APFL_TOK_LOCAL_ASSIGN: - bool local = p->token.type == APFL_TOK_LOCAL_ASSIGN; + local = p->token.type == APFL_TOK_LOCAL_ASSIGN; struct apfl_position position = p->token.position; if (fragments->len == 0) {