aboutsummaryrefslogtreecommitdiff
path: root/src/Spv.Generator/ConstantKey.cs
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/Spv.Generator/ConstantKey.cs
parent649d372f7da8559f8b6d74ca44af64ba7d7853c4 (diff)
GetHashCode should not reference mutable fields (#5331)
Diffstat (limited to 'src/Spv.Generator/ConstantKey.cs')
-rw-r--r--src/Spv.Generator/ConstantKey.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Spv.Generator/ConstantKey.cs b/src/Spv.Generator/ConstantKey.cs
index d3c1b905..e7758b40 100644
--- a/src/Spv.Generator/ConstantKey.cs
+++ b/src/Spv.Generator/ConstantKey.cs
@@ -5,7 +5,7 @@ namespace Spv.Generator
{
internal struct ConstantKey : IEquatable<ConstantKey>
{
- private Instruction _constant;
+ private readonly Instruction _constant;
public ConstantKey(Instruction constant)
{