Skip to content

Commit

Permalink
fix #4793
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Nov 13, 2020
1 parent cb4e519 commit 71ac40c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/dotnet/Symbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ public override bool Equals(object o)
/// <returns>A hash code</returns>
public override int GetHashCode()
{
return (int)NativeObject;
if (IsIntSymbol())
return ((IntSymbol)this).Int;
else
return ((StringSymbol)this).String.GetHashCode();
}


Expand Down

0 comments on commit 71ac40c

Please # to comment.