TaylanUB / scheme-bytestructures

Structured access to bytevector contents.
GNU General Public License v3.0
36 stars 6 forks source link

`intptr_t` is wrong when cross-compiling #40

Closed civodul closed 3 years ago

civodul commented 4 years ago

Hello @TaylanUB,

As noted in https://issues.guix.gnu.org/44000, intptr_t is incorrect when cross-compiling (say) from 64-bit to 32-bit: since arch32-bit? is determined at macro-expansion time (via cond-expand), it is #false in that case even though it should be #true.

I posted a patch that solves the issue, but it's somewhat Guile-specific, so I suppose we'd need a more generic solution.

WDYT?

Ludo'.

TaylanUB commented 3 years ago

Presumably fixed in 1.0.9, please reopen if not.