Browse Source

Fix QuickJS JS_ToBigUint call.

pull/1865/head
Joao Matos 10 months ago
parent
commit
5581351824
  1. 2
      src/Generator/Generators/QuickJS/QuickJSMarshal.cs

2
src/Generator/Generators/QuickJS/QuickJSMarshal.cs

@ -568,7 +568,7 @@ namespace CppSharp.Generators.Cpp @@ -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;

Loading…
Cancel
Save