Unify naming of type lookups in c_type_map dict
[ldk-java] / genbindings.py
index 221b1bd823132dffe4930774324a166bab0ae8fc..f47cce3699d823ab2f972ba47e161f2d69791fef 100755 (executable)
@@ -214,7 +214,7 @@ def java_c_types(fn_arg, ret_arr_len):
         is_primitive = True
     elif fn_arg.startswith("uint64_t") or fn_arg.startswith("uintptr_t"):
         # TODO: uintptr_t is arch-dependent :(
-        mapped_type = consts.c_type_map['long']
+        mapped_type = consts.c_type_map['uint64_t']
         java_ty = mapped_type[0]
         c_ty = "int64_t"
         fn_ty_arg = "J"