projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
ece5c94
)
Use uint64_t instead of long for pointers represented in C
author
Matt Corallo
<git@bluematt.me>
Sun, 2 May 2021 03:31:31 +0000
(
03:31
+0000)
committer
Matt Corallo
<git@bluematt.me>
Mon, 3 May 2021 02:43:51 +0000
(
02:43
+0000)
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.
No differences found