From 3ab23ef29a9baa59e22a774a9d0c9c166b081a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Fri, 30 Apr 2021 12:27:07 +0200 Subject: [PATCH] use nelem --- tags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags.c b/tags.c index e46e0c4..4627511 100644 --- a/tags.c +++ b/tags.c @@ -65,7 +65,7 @@ tagsget(Tagctx *ctx) ctx->found = 0; ctx->format = Funknown; res = -1; - for(i = 0; i < (int)(sizeof(g)/sizeof(g[0])); i++){ + for(i = 0; i < nelem(g); i++){ ctx->num = 0; if(g[i].f(ctx) == 0){ if(ctx->num > 0) -- 2.45.2