elif fn_arg.startswith("uint16_t"):
mapped_type = consts.c_type_map['uint16_t']
java_ty = mapped_type[0]
- c_ty = "jshort"
+ c_ty = "int16_t"
fn_ty_arg = "S"
fn_arg = fn_arg[8:].strip()
is_primitive = True
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"