From e9ae9fda5ba88e13ca107c5db77ca94383c26b8f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 23 Oct 2020 20:55:44 -0400 Subject: [PATCH] Fix optimized build --- genbindings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5