From: Matt Corallo Date: Sat, 1 Oct 2022 20:31:26 +0000 (+0000) Subject: [TS] Correct TS call semantics for some function types X-Git-Tag: v0.0.111.0^2~7 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=commitdiff_plain;h=661b986218f97a6d6162ddd19f3c0d48253a63ff [TS] Correct TS call semantics for some function types TS functions now all return uint64_t, not uint32_t, for pointers. --- diff --git a/typescript_strings.py b/typescript_strings.py index e5cf6132..52dd12ce 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -1082,7 +1082,7 @@ export class {struct_name.replace("LDK","")} extends CommonBase {{ elif not fn_line.ret_ty_info.passed_as_ptr: out_c += "\treturn js_invoke_function_" + fn_suffix + "(j_calls->instance_ptr, " + str(self.function_ptr_counter) else: - out_c += "\tuint32_t ret = js_invoke_function_" + fn_suffix + "(j_calls->instance_ptr, " + str(self.function_ptr_counter) + out_c += "\tuint64_t ret = js_invoke_function_" + fn_suffix + "(j_calls->instance_ptr, " + str(self.function_ptr_counter) self.function_ptrs[self.function_ptr_counter] = (struct_name, fn_line.fn_name) self.function_ptr_counter += 1