Skip to content

fix(lib): cast NULL in ts_subtree_children macro#5353

Merged
amaanq merged 1 commit intorelease-0.26from
backport-5343-to-release-0.26
Feb 21, 2026
Merged

fix(lib): cast NULL in ts_subtree_children macro#5353
amaanq merged 1 commit intorelease-0.26from
backport-5343-to-release-0.26

Conversation

@tree-sitter-ci-bot
Copy link

Description

Backport of #5343 to release-0.26.

Explicitly casting NULL to (Subtree *) in the ternary expression ensures
type consistency. This resolves ambiguous type inference issues encountered
by strict static analysis tools and C-to-Go transpilers (like ccgo).

Signed-off-by: lucasew <lucas59356@gmail.com>
(cherry picked from commit 4e9fede)
@amaanq amaanq merged commit a226c68 into release-0.26 Feb 21, 2026
13 checks passed
@amaanq amaanq deleted the backport-5343-to-release-0.26 branch February 21, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants