]> git.bitcoin.ninja Git - ldk-java/commit
Switch 32-bit platforms to using 64-bit "pointers"
authorMatt Corallo <git@bluematt.me>
Fri, 12 Aug 2022 23:08:17 +0000 (23:08 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 13 Aug 2022 00:39:56 +0000 (00:39 +0000)
commit7cbcc5ef17b8036b2e99980e227c7ca0d44dba7f
treea25fea7b6e00e826ff15b11ee87bd646aba4c030
parent1f8ac33c53ba371193ed1e543038b83c2f52da8e
Switch 32-bit platforms to using 64-bit "pointers"

This much more cleanly fixes the issue described in the previous
commit by simply using 64-bit integers to represent pointers on
32-bit platforms, letting us store the required flag bit in the top
32-bits that are always free.

It does, however, imply changing the entire call semantics for
TypeScript to use BigInts for pointers, rather than numbers.
gen_type_mapping.py
genbindings.py
java_strings.py
ts/js-wasm.h
typescript_strings.py