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>
This commit is contained in:
Gergő Magyar 2026-05-10 17:57:11 +01:00 committed by GitHub
parent 3525f3aca2
commit bc7a9c3426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;