Skip to content

Commit

Permalink
[ObjCRuntime] Add missing cases for UIntPtr for determining if a type…
Browse files Browse the repository at this point in the history
… is a built-in type. (#15391)

Also fix a typo for "System.nint".

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
  • Loading branch information
rolfbjarne and mandel-macaque authored Jul 11, 2022
1 parent d251b69 commit 40aa3b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ObjCRuntime/Stret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ public static bool ArmNeedStret (Type returnType, Generator generator)
case "System.UInt32":
case "System.Int32":
case "System.IntPtr":
case "System.UIntPtr":
case "System.nuint":
case "System.uint":
case "System.nint":
return false;
// floating-point types are stret
}
Expand Down Expand Up @@ -269,6 +270,7 @@ static bool IsBuiltInType (Type type, bool is_64_bits, out int type_size)
type_size = 8;
return true;
case "IntPtr":
case "UIntPtr":
#if !NET
case "nfloat":
#endif
Expand Down

1 comment on commit 40aa3b2

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.