aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Memory/MemoryBlock.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Memory/MemoryBlock.cs')
-rw-r--r--src/Ryujinx.Memory/MemoryBlock.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.Memory/MemoryBlock.cs b/src/Ryujinx.Memory/MemoryBlock.cs
index e7fc4751..7d8d7cf0 100644
--- a/src/Ryujinx.Memory/MemoryBlock.cs
+++ b/src/Ryujinx.Memory/MemoryBlock.cs
@@ -364,9 +364,9 @@ namespace Ryujinx.Memory
/// <param name="pointer">Native pointer</param>
/// <param name="offset">Offset to add</param>
/// <returns>Native pointer with the added offset</returns>
- private IntPtr PtrAddr(IntPtr pointer, ulong offset)
+ private static IntPtr PtrAddr(IntPtr pointer, ulong offset)
{
- return (IntPtr)(pointer.ToInt64() + (long)offset);
+ return new IntPtr(pointer.ToInt64() + (long)offset);
}
/// <summary>
@@ -439,4 +439,4 @@ namespace Ryujinx.Memory
private static void ThrowInvalidMemoryRegionException() => throw new InvalidMemoryRegionException();
}
-} \ No newline at end of file
+}