From: Matt Corallo Date: Mon, 25 Jan 2021 18:10:25 +0000 (-0500) Subject: Unify naming of type lookups in c_type_map dict X-Git-Tag: v0.0.1~36^2~11 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=36a5d30e562005ee6ddd8d69b7c3b10749f4448b;p=ldk-java Unify naming of type lookups in c_type_map dict --- diff --git a/genbindings.py b/genbindings.py index 221b1bd8..f47cce36 100755 --- a/genbindings.py +++ b/genbindings.py @@ -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" diff --git a/java_strings.py b/java_strings.py index d73a15de..16f59b62 100644 --- a/java_strings.py +++ b/java_strings.py @@ -7,7 +7,7 @@ class Consts: uint8_t = ['byte'], uint16_t = ['short'], uint32_t = ['int'], - long = ['long'], + uint64_t = ['long'], ) self.to_hu_conv_templates = dict( diff --git a/typescript_strings.py b/typescript_strings.py index a76aeadb..e3dd3c60 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -17,7 +17,7 @@ class Consts: uint8_t = ['number', 'Uint8Array'], uint16_t = ['number', 'Uint16Array'], uint32_t = ['number', 'Uint32Array'], - long = ['number'], + uint64_t = ['number'], ) self.to_hu_conv_templates = dict(