]> git.bitcoin.ninja Git - ldk-java/commit
Use uint64_t instead of long for pointers represented in C
authorMatt Corallo <git@bluematt.me>
Sun, 2 May 2021 03:31:31 +0000 (03:31 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 3 May 2021 02:43:51 +0000 (02:43 +0000)
commitece5c948b950d7149e98780423e77cf38b9d9b9e
tree6cec17f20b1b03f5b70a30cc15ecec4d9df35ea2
parent798362a31590a4c5626db086566c083088ef0861
Use uint64_t instead of long for pointers represented in C

While long is generally correct, the conversion of pointers to
long, then int64_t (passed to Java), then back to pointers
results in poor sign-extension, giving us invalid pointers.
Instead, convert to uint64_t everywhere and things work.
gen_type_mapping.py
genbindings.py
java_strings.py