From 5581351824b6b0456291effe94a5e11f9b2dccbd Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Tue, 3 Sep 2024 20:14:31 +0100 Subject: [PATCH] Fix QuickJS JS_ToBigUint call. --- src/Generator/Generators/QuickJS/QuickJSMarshal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/QuickJS/QuickJSMarshal.cs b/src/Generator/Generators/QuickJS/QuickJSMarshal.cs index 43fda6c9..80d92112 100644 --- a/src/Generator/Generators/QuickJS/QuickJSMarshal.cs +++ b/src/Generator/Generators/QuickJS/QuickJSMarshal.cs @@ -568,7 +568,7 @@ namespace CppSharp.Generators.Cpp return true; case PrimitiveType.ULongLong: - Context.Before.WriteLine($"if (JS_ToBigUInt64(ctx, (int64_t*)&{argName}, argv[{Context.ParameterIndex}]))"); + Context.Before.WriteLine($"if (JS_ToBigUint64(ctx, (int64_t*)&{argName}, argv[{Context.ParameterIndex}]))"); Context.Before.WriteLineIndent("return JS_EXCEPTION;"); Context.Return.Write($"{argName}"); return true;