Skip to content

Fix layout recalc skipping function signatures - #48

Merged
sanko merged 1 commit into
mainfrom
dev
Aug 3, 2026
Merged

Fix layout recalc skipping function signatures#48
sanko merged 1 commit into
mainfrom
dev

Conversation

@sanko

@sanko sanko commented Aug 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

`_infix_type_recalculate_layout_recursive` had no `INFIX_TYPE_REVERSE_TRAMPOLINE`
case, so the layout stage never descended into a function signature's return
type or arguments. Structs declared inline in a signature whose members
referenced named types kept the parse-time offsets computed while members were
unresolved (size 0), so even after resolve, every scalar member collapsed to the
same offset, causing wrong field reads/writes through struct typed args.

Found this while editing Affix cookbook article about wrapping `libpng`.
@sanko
sanko merged commit b02c432 into main Aug 3, 2026
201 of 216 checks passed
@sanko
sanko deleted the dev branch August 3, 2026 19:09
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.

1 participant