mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
fix #4793
This commit is contained in:
parent
cb4e5197fa
commit
71ac40ca23
|
@ -102,7 +102,10 @@ namespace Microsoft.Z3
|
|||
/// <returns>A hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return (int)NativeObject;
|
||||
if (IsIntSymbol())
|
||||
return ((IntSymbol)this).Int;
|
||||
else
|
||||
return ((StringSymbol)this).String.GetHashCode();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue