misc: Use nint instead of IntPtr

This commit is contained in:
KeatonTheBot
2026-02-14 12:32:55 -06:00
parent 40c32c7a20
commit 59b1989b97
39 changed files with 414 additions and 414 deletions
+2 -2
View File
@@ -165,7 +165,7 @@ namespace Ryujinx.Memory
fixed (byte* pMemName = memName)
{
fd = ASharedMemory_create((IntPtr)pMemName, (nuint)size);
fd = ASharedMemory_create((nint)pMemName, (nuint)size);
if (fd <= 0)
{
throw new OutOfMemoryException();
@@ -173,7 +173,7 @@ namespace Ryujinx.Memory
}
// ASharedMemory_create handle ftruncate for us.
return (IntPtr)fd;
return (nint)fd;
}
else
{
@@ -91,7 +91,7 @@ namespace Ryujinx.Memory
public static partial int shm_unlink(nint name);
[DllImport("android")]
internal static extern int ASharedMemory_create(IntPtr name, nuint size);
internal static extern int ASharedMemory_create(nint name, nuint size);
private static int MmapFlagsToSystemFlags(MmapFlags flags)
{