From ad38ab057a477dad34445ca97828a5c0cfb6b1bd Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 10 Jan 2022 03:57:50 +0000 Subject: [PATCH] Fix LDKRecoverableSignature variable parsing --- genbindings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5