From: Matt Corallo Date: Sat, 24 Oct 2020 00:55:44 +0000 (-0400) Subject: Fix optimized build X-Git-Tag: v0.0.1~86 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e9ae9fda5ba88e13ca107c5db77ca94383c26b8f;p=ldk-java Fix optimized build --- diff --git a/genbindings.py b/genbindings.py index 30f14759..baaf0fcd 100755 --- 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 """) - 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: