aboutsummaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-03-22 16:36:18 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-03-22 16:36:18 +0200
commit350f6c40fa18c35bde9489225175c82de44ba709 (patch)
treed010427fb92a59a901c9a90f7a2b6db64484f0c5 /src/move.c
parent199d1342d76b5cae6503fa0a97322d2658d43b5f (diff)
downloadfwd-350f6c40fa18c35bde9489225175c82de44ba709.tar.gz
fwd-350f6c40fa18c35bde9489225175c82de44ba709.zip
use maps in scope
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/move.c b/src/move.c
index dc50cac..602b620 100644
--- a/src/move.c
+++ b/src/move.c
@@ -270,8 +270,8 @@ static int mvcheck_proc(struct state *state, struct ast *node)
static int total_check_single(struct state *state, struct scope *scope)
{
int ret = 0;
- foreach_visible(n, scope->symbols) {
- struct ast *def = n->node;
+ foreach(visible, n, &scope->symbols) {
+ struct ast *def = n->data;
if (def->k != AST_VAR_DEF)
continue;