Skip to content

Commit

Permalink
Try to fix wasm build break
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Dec 26, 2022
1 parent 88491f4 commit dda9f65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ private void EmitNativeToInterp(StreamWriter w, ref List<PInvokeCallback> callba
{
if (pindex > 0)
sb.Append(',');
sb.Append(MapType(method.GetParameters()[pindex].ParameterType));
sb.Append(MapType(p.ParameterType));
sb.Append($" arg{pindex}");
pindex++;
}
Expand All @@ -443,15 +443,15 @@ private void EmitNativeToInterp(StreamWriter w, ref List<PInvokeCallback> callba
pindex = 0;
if (!is_void)
{
sb.Append("&res");
sb.Append("(int*)&res");
pindex++;
}
int aindex = 0;
foreach (var p in method.GetParameters())
{
if (pindex > 0)
sb.Append(", ");
sb.Append($"&arg{aindex}");
sb.Append($"(int*)&arg{aindex}");
pindex++;
aindex++;
}
Expand Down

0 comments on commit dda9f65

Please sign in to comment.