Skip to content

Commit

Permalink
Parenthases
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Sep 28, 2024
1 parent d1cd445 commit 0eb786c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Passes/Pass80UnstripMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private static PropertyDefinition GetOrCreateProperty(MethodDefinition unityMeth
if (targetAssemblyName.EndsWith(".dll"))
targetAssemblyName = targetAssemblyName.Substring(0, targetAssemblyName.Length - 4);

if (useSystemCorlibPrimitives && unityType.IsPrimitive() || unityType.ElementType is ElementType.String or ElementType.Void)
if (useSystemCorlibPrimitives && (unityType.IsPrimitive() || unityType.ElementType is ElementType.String or ElementType.Void))
return imports.Module.CorLibTypeFactory.FromElementType(unityType.ElementType);

if (targetAssemblyName == "UnityEngine")
Expand Down

0 comments on commit 0eb786c

Please sign in to comment.