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"