X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=typescript_strings.py;h=a24faea79921544862ace4fe6efe14f0911812f1;hb=c4a7eff125894d6c1bf18dec34c439f5dec4c2c5;hp=a12370f4e2b78cc47c8d5836da8d34fc5a2b8d2b;hpb=8fbb9c1f80dbb3d3f5bd3472f2fa8053a8437141;p=ldk-java diff --git a/typescript_strings.py b/typescript_strings.py index a12370f4..a24faea7 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -336,8 +336,8 @@ import * as InternalUtils from '../InternalUtils.mjs' assert False # Only called if above is None def get_native_arr_ptr_call(self, ty_info): if ty_info.subty is not None: - return "(" + ty_info.subty.c_ty + "*)(", " + 4)" - return "(" + ty_info.c_ty + "*)(", " + 4)" + return "(" + ty_info.subty.c_ty + "*)(((uint8_t*)", ") + 4)" + return "(" + ty_info.c_ty + "*)(((uint8_t*)", ") + 4)" def get_native_arr_entry_call(self, ty_info, arr_name, idxc, entry_access): return None def cleanup_native_arr_ref_contents(self, arr_name, dest_name, arr_len, ty_info):