Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ObjCRuntime] Add missing cases for UIntPtr for determining if a type is a built-in type. #15391

Merged
merged 3 commits into from
Jul 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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