Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-11-12 17:55:46 +0300
committerGitHub <noreply@github.com>2021-11-12 17:55:46 +0300
commit8881fcfb67ec679e44da68ceaa209e2b5c9096aa (patch)
tree1288329e52b2420e370ff5c0300f17eafd1a43a9 /src/tasks
parent9b58e442467667b49163fdfd961b232d105ad495 (diff)
[wasm] Allow enums in unmanaged callbacks. (#61393)
Fixes https://github.com/dotnet/runtime/issues/61144. Co-authored-by: Zoltan Varga <vargaz@gmail.com>
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs b/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
index 2a682947351..7b737715654 100644
--- a/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
+++ b/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
@@ -415,7 +415,7 @@ public class PInvokeTableGenerator : Task
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;