X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=genbindings.py;h=32cad50a7480adebd50e43b81c12544a45b06c2c;hb=37e5ae059926cd54d7c5aac06a5eef6785662f94;hp=f47cce3699d823ab2f972ba47e161f2d69791fef;hpb=9254f751c55dd40afd17bc129cb72f6af3d35ee8;p=ldk-java diff --git a/genbindings.py b/genbindings.py index f47cce36..32cad50a 100755 --- a/genbindings.py +++ b/genbindings.py @@ -216,11 +216,12 @@ def java_c_types(fn_arg, ret_arr_len): # TODO: uintptr_t is arch-dependent :( mapped_type = consts.c_type_map['uint64_t'] java_ty = mapped_type[0] - c_ty = "int64_t" fn_ty_arg = "J" if fn_arg.startswith("uint64_t"): + c_ty = "int64_t" fn_arg = fn_arg[8:].strip() else: + c_ty = "intptr_t" fn_arg = fn_arg[9:].strip() is_primitive = True elif is_const and fn_arg.startswith("char *"):