aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/Memory/SpanOrArray.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Common/Memory/SpanOrArray.cs')
-rw-r--r--Ryujinx.Common/Memory/SpanOrArray.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Common/Memory/SpanOrArray.cs b/Ryujinx.Common/Memory/SpanOrArray.cs
index c1f06655..a9798d27 100644
--- a/Ryujinx.Common/Memory/SpanOrArray.cs
+++ b/Ryujinx.Common/Memory/SpanOrArray.cs
@@ -7,7 +7,7 @@ namespace Ryujinx.Common.Memory
/// This is useful to keep the Array representation when possible to avoid copies.
/// </summary>
/// <typeparam name="T">Element Type</typeparam>
- public ref struct SpanOrArray<T> where T : unmanaged
+ public readonly ref struct SpanOrArray<T> where T : unmanaged
{
public readonly T[] Array;
public readonly ReadOnlySpan<T> Span;