From 36a5d30e562005ee6ddd8d69b7c3b10749f4448b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 25 Jan 2021 13:10:25 -0500 Subject: [PATCH] Unify naming of type lookups in c_type_map dict --- genbindings.py | 2 +- java_strings.py | 2 +- typescript_strings.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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( -- 2.39.5