projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40b7509
)
Fix optimized build
author
Matt Corallo
<git@bluematt.me>
Sat, 24 Oct 2020 00:55:44 +0000
(20:55 -0400)
committer
Matt Corallo
<git@bluematt.me>
Sat, 24 Oct 2020 00:55:44 +0000
(20:55 -0400)
genbindings.py
patch
|
blob
|
history
diff --git
a/genbindings.py
b/genbindings.py
index 30f14759b3c3037668f1b78bad8e1c9737e0d8b8..baaf0fcdbed402ea27ef0110c1b17cd5da425e8f 100755
(executable)
--- a/
genbindings.py
+++ b/
genbindings.py
@@
-1305,9
+1305,9
@@
with open(sys.argv[1]) as in_h, open(sys.argv[2], "w") as out_java, open(sys.arg
#include <stdatomic.h>
""")
- if sys.argv[
4
] == "false":
+ if sys.argv[
5
] == "false":
out_c.write("#define MALLOC(a, _) malloc(a)\n")
- out_c.write("#define FREE(p) if ((p) > 1024) { free(p); }\n")
+ out_c.write("#define FREE(p) if ((
long)(
p) > 1024) { free(p); }\n")
out_c.write("#define DO_ASSERT(a) (void)(a)\n")
out_c.write("#define CHECK(a)\n")
else: