tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

FFI: bindings make and read Ints through the 64-bit accessors (issue #47)

With big integers (ADR 0014), an Int passed to C can be a block, which
tl_int_get misreads. tilc bindgen's shims and trampolines now read Ints
with tl_int_to_i64 and make them with tl_int_from_i64 (dropping a
callback's owned result), and so do the argon2 shim and ADR 0015's
example. Found when stacking the bigint and bindgen branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · e418f3c1888b7c0f49fce6c9c399e14d79e9258e

Parents 37148e4

5 fichiers modifiés, 88 ajouts, 72 suppressions

Mcrates/tilc_bindgen/src/generate.rs+14−10
Mcrates/tilc_bindgen/tests/snapshots/generate__kitchen.c.snap+36−35
Mdocs/adr/0015-c-callbacks-and-bindings.md+9−3
Mexamples/qsort/sortkit/csrc/sortkit_bindings.c+26−22