From: Matt Corallo Date: Mon, 10 Jan 2022 03:57:50 +0000 (+0000) Subject: Fix LDKRecoverableSignature variable parsing X-Git-Tag: v0.0.104.1^2~19 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=ad38ab057a477dad34445ca97828a5c0cfb6b1bd;p=ldk-java Fix LDKRecoverableSignature variable parsing --- diff --git a/genbindings.py b/genbindings.py index c5bc0b1f..76c1a5f6 100755 --- a/genbindings.py +++ b/genbindings.py @@ -150,7 +150,7 @@ def java_c_types(fn_arg, ret_arr_len): rust_obj = "LDKSignature" arr_access = "compact_form" elif fn_arg.startswith("LDKRecoverableSignature"): - fn_arg = "uint8_t (*" + fn_arg[25:] + ")[68]" + fn_arg = "uint8_t (*" + fn_arg[24:] + ")[68]" assert var_is_arr_regex.match(fn_arg[8:]) rust_obj = "LDKRecoverableSignature" arr_access = "serialized_form"