Skip to content

Commit

Permalink
[wasm] Allow enums in unmanaged callbacks.
Browse files Browse the repository at this point in the history
Fixes #61144.
  • Loading branch information
vargaz authored and github-actions committed Nov 10, 2021
1 parent cf7d517 commit 0c08246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private void EmitNativeToInterp(StreamWriter w, List<PInvokeCallback> callbacks)

private static bool IsBlittable (Type type)
{
if (type.IsPrimitive || type.IsByRef || type.IsPointer)
if (type.IsPrimitive || type.IsByRef || type.IsPointer || type.IsEnum)
return true;
else
return false;
Expand Down

0 comments on commit 0c08246

Please sign in to comment.