From: Matt Corallo Date: Sun, 2 May 2021 03:31:31 +0000 (+0000) Subject: Use uint64_t instead of long for pointers represented in C X-Git-Tag: v0.0.98~1^2~14 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ece5c948b950d7149e98780423e77cf38b9d9b9e;hp=ece5c948b950d7149e98780423e77cf38b9d9b9e;p=ldk-java 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. ---