mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-02 06:18:53 +02:00
misc: Use nint instead of IntPtr
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user