aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/PrivateMemoryAllocator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Cpu/PrivateMemoryAllocator.cs')
-rw-r--r--src/Ryujinx.Cpu/PrivateMemoryAllocator.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Ryujinx.Cpu/PrivateMemoryAllocator.cs b/src/Ryujinx.Cpu/PrivateMemoryAllocator.cs
index cbf1f1d9..ce8e8341 100644
--- a/src/Ryujinx.Cpu/PrivateMemoryAllocator.cs
+++ b/src/Ryujinx.Cpu/PrivateMemoryAllocator.cs
@@ -15,7 +15,7 @@ namespace Ryujinx.Cpu
public MemoryBlock Memory { get; private set; }
public ulong Size { get; }
- private struct Range : IComparable<Range>
+ private readonly struct Range : IComparable<Range>
{
public ulong Offset { get; }
public ulong Size { get; }
@@ -40,7 +40,7 @@ namespace Ryujinx.Cpu
Size = size;
_freeRanges = new List<Range>
{
- new Range(0, size)
+ new Range(0, size),
};
}
@@ -164,7 +164,7 @@ namespace Ryujinx.Cpu
{
private const ulong InvalidOffset = ulong.MaxValue;
- public struct Allocation
+ public readonly struct Allocation
{
public T Block { get; }
public ulong Offset { get; }
@@ -265,4 +265,4 @@ namespace Ryujinx.Cpu
_blocks.Clear();
}
}
-} \ No newline at end of file
+}