aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Translation/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Translation/Cache')
-rw-r--r--ARMeilleure/Translation/Cache/CacheEntry.cs2
-rw-r--r--ARMeilleure/Translation/Cache/CacheMemoryAllocator.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ARMeilleure/Translation/Cache/CacheEntry.cs b/ARMeilleure/Translation/Cache/CacheEntry.cs
index fce984c3..dc5503b1 100644
--- a/ARMeilleure/Translation/Cache/CacheEntry.cs
+++ b/ARMeilleure/Translation/Cache/CacheEntry.cs
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
namespace ARMeilleure.Translation.Cache
{
- struct CacheEntry : IComparable<CacheEntry>
+ readonly struct CacheEntry : IComparable<CacheEntry>
{
public int Offset { get; }
public int Size { get; }
diff --git a/ARMeilleure/Translation/Cache/CacheMemoryAllocator.cs b/ARMeilleure/Translation/Cache/CacheMemoryAllocator.cs
index 3111e886..4c22de40 100644
--- a/ARMeilleure/Translation/Cache/CacheMemoryAllocator.cs
+++ b/ARMeilleure/Translation/Cache/CacheMemoryAllocator.cs
@@ -6,7 +6,7 @@ namespace ARMeilleure.Translation.Cache
{
class CacheMemoryAllocator
{
- private struct MemoryBlock : IComparable<MemoryBlock>
+ private readonly struct MemoryBlock : IComparable<MemoryBlock>
{
public int Offset { get; }
public int Size { get; }