Skip to content

Map int8_t/uint8_t to i8/u8 - #6

Merged
bqqbarbhg merged 1 commit into
ufbx:mainfrom
coreh:fix-u8-field-mapping
Aug 9, 2026
Merged

bqqbarbhg merged 1 commit into
ufbx:mainfrom
coreh:fix-u8-field-mapping

Conversation

@coreh

@coreh coreh commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This was causing the MaterialMap struct to not map cleanly to the underlying C library struct, potentially causing us to read garbage, depending on platform alignment

@bqqbarbhg

bqqbarbhg commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the PR!

Confirmed that it does not work on x64 in f40b392.

The bug was (un)fortunately mitigated on 64-bit architectures by the structure alignment absorbing the error, so the full struct did not get misaligned.

@bqqbarbhg
bqqbarbhg merged commit 0886131 into ufbx:main Aug 9, 2026
2 checks passed
@bqqbarbhg

Copy link
Copy Markdown
Contributor

Published as 0.11.3

@coreh
coreh deleted the fix-u8-field-mapping branch August 9, 2026 15:45
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