aboutsummaryrefslogtreecommitdiff
path: root/src/ARMeilleure
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-06-22 13:36:07 -0300
committerGitHub <noreply@github.com>2023-06-22 18:36:07 +0200
commit58907e2c290473326e5ab74bdfe1429b8a518ba4 (patch)
tree4d47637c517b0b0540e584acf4ad52d0b7b9e544 /src/ARMeilleure
parent649d372f7da8559f8b6d74ca44af64ba7d7853c4 (diff)
GetHashCode should not reference mutable fields (#5331)
Diffstat (limited to 'src/ARMeilleure')
-rw-r--r--src/ARMeilleure/State/V128.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ARMeilleure/State/V128.cs b/src/ARMeilleure/State/V128.cs
index 3fa9f9a9..441bbfa6 100644
--- a/src/ARMeilleure/State/V128.cs
+++ b/src/ARMeilleure/State/V128.cs
@@ -13,8 +13,8 @@ namespace ARMeilleure.State
// _e0 & _e1 could be marked as readonly, however they are not readonly because we modify them through the Unsafe
// APIs. This also means that one should be careful when changing the layout of this struct.
- private ulong _e0;
- private ulong _e1;
+ private readonly ulong _e0;
+ private readonly ulong _e1;
/// <summary>
/// Gets a new <see cref="V128"/> with all bits set to zero.