fix: add missing breaks in walker switch-block
This commit is contained in:
@@ -114,6 +114,7 @@ fzl_walk_res_t walk(fzl_walker_t *walker, fzl_node_t *node)
|
||||
push_op(walker, FZL_OPCODE_LOADCONST);
|
||||
push_word(walker, n);
|
||||
current_res = (fzl_walk_res_t){.type = FZL_TYPE_STRING, .error = false};
|
||||
break;
|
||||
}
|
||||
|
||||
case FZL_NODETYPE_BLOCK:
|
||||
@@ -260,6 +261,7 @@ fzl_walk_res_t walk(fzl_walker_t *walker, fzl_node_t *node)
|
||||
|
||||
push_op(walker, FZL_OPCODE_NEG);
|
||||
current_res = (fzl_walk_res_t){.type = res.type, .error = false};
|
||||
break;
|
||||
}
|
||||
|
||||
case FZL_NODETYPE_DECLARATION:
|
||||
@@ -273,6 +275,7 @@ fzl_walk_res_t walk(fzl_walker_t *walker, fzl_node_t *node)
|
||||
// NOTE: ignoring type field for now
|
||||
|
||||
current_res = (fzl_walk_res_t){.type = FZL_TYPE_NULL, .error = false};
|
||||
break;
|
||||
}
|
||||
|
||||
case FZL_NODETYPE_ASSIGN:
|
||||
@@ -289,6 +292,7 @@ fzl_walk_res_t walk(fzl_walker_t *walker, fzl_node_t *node)
|
||||
|
||||
push_op(walker, FZL_OPCODE_WRITE);
|
||||
current_res = (fzl_walk_res_t){.type = rres.type, .error = false};
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user