Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b6abd9

Browse files
author
GSPP
committed
Fix PyObject.GetHashCode
1 parent 19d854c commit 8b6abd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/pyobject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ public override bool Equals(object o)
909909
/// </remarks>
910910
public override int GetHashCode()
911911
{
912-
return Runtime.PyObject_Hash(obj).ToInt32();
912+
return ((ulong)Runtime.PyObject_Hash(obj)).GetHashCode();
913913
}
914914

915915

0 commit comments

Comments
 (0)