]> git.bitcoin.ninja Git - ldk-java/commitdiff
Fix LDKRecoverableSignature variable parsing
authorMatt Corallo <git@bluematt.me>
Mon, 10 Jan 2022 03:57:50 +0000 (03:57 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 10 Jan 2022 05:04:36 +0000 (05:04 +0000)
genbindings.py

index c5bc0b1f28b07d315227d351a57f77c1dcb732f7..76c1a5f61a71f7632aa4784a4557425aa8ce4f56 100755 (executable)
@@ -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"