From 661b986218f97a6d6162ddd19f3c0d48253a63ff Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 1 Oct 2022 20:31:26 +0000 Subject: [PATCH] [TS] Correct TS call semantics for some function types TS functions now all return uint64_t, not uint32_t, for pointers. --- typescript_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5