Move variable out of switch

This doesn't complie with emcc
This commit is contained in:
Laria 2022-06-05 22:30:18 +02:00
parent 09f7df79bb
commit 64f2be5afc

View file

@ -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) {