]> git.bitcoin.ninja Git - ldk-java/commit
Handle `uintptr_t`s better in JNI bindings
authorMatt Corallo <git@bluematt.me>
Wed, 3 Feb 2021 01:28:01 +0000 (20:28 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Feb 2021 01:50:44 +0000 (20:50 -0500)
commite89532158935ae8f50afa790feea9d525d976ded
tree1932e47c9ad18548f8a091d4c9096649751e145e
parent0165af9b0667cd6624ab09a995095b81a400be1c
Handle `uintptr_t`s better in JNI bindings

This fixes bugs building for 32-bit platforms as the JNI functions
would expect `uintptr_t`s (32-bit) but Java expects a long (64-bit).
We can't just replace them all with int64_ts as we need to have
`uintptr_t`s still in _jcalls functions which we pass function
pointers to C.
gen_type_mapping.py
genbindings.py