From bc7a9c3426d12f2ea8a555334315f54026935d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Magyar?= Date: Sun, 10 May 2026 17:57:11 +0100 Subject: [PATCH] Potential fix for pull request finding 'CodeQL / Comparison between inconvertible types' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- gitnexus/src/core/ingestion/languages/c/arity-metadata.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnexus/src/core/ingestion/languages/c/arity-metadata.ts b/gitnexus/src/core/ingestion/languages/c/arity-metadata.ts index cb86b0e5b..94c12f5bf 100644 --- a/gitnexus/src/core/ingestion/languages/c/arity-metadata.ts +++ b/gitnexus/src/core/ingestion/languages/c/arity-metadata.ts @@ -85,7 +85,7 @@ function findFuncDeclarator(node: SyntaxNode): SyntaxNode | null { return null; } // Unwrap pointer_declarator - while (decl !== null && decl.type === 'pointer_declarator') { + while (decl.type === 'pointer_declarator') { const next = decl.childForFieldName('declarator'); if (next === null) break; decl = next;