Commit dc77410
fix: make render-state enum reads signedness-agnostic across platforms
The bump commit assumed GHOSTTY_ENUM_TYPED uniformly emits `: int`; in
reality only Apple clang enables the c_fixed_enum extension in default
C mode, so on Linux bindgen still infers c_uint for the non-negative
render-state enums and the c_int-shaped read_enum plumbing failed to
compile (three E0308s, caught by the shed Linux verification before
CI). The ABI is a 4-byte write either way: keep the c_int read and cast
at the alias boundary with `as _`, which is correct under either
signedness, and document the divergence on read_enum.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVNzooL9ww3TgdMo1UABzb1 parent 2f190cf commit dc77410
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
354 | | - | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
| |||
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
414 | | - | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
| |||
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
740 | | - | |
741 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
742 | 748 | | |
743 | 749 | | |
744 | 750 | | |
| |||
0 commit comments