Skip to content

Commit 06ded7a

Browse files
authored
Merge pull request #677 from GSPP/master
Fix PyObject.GetHashCode
2 parents 19d854c + 811f10f commit 06ded7a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

AUTHORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@
4848
- ([@rmadsen-ks](https://github.com/rmadsen-ks))
4949
- ([@stonebig](https://github.com/stonebig))
5050
- ([@testrunner123](https://github.com/testrunner123))
51+
- ([@GSPP](https://github.com/GSPP))
5152

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
3131
- Fixed `clr.GetClrType` when iterating over `System` members (#607)
3232
- Fixed `LockRecursionException` when loading assemblies (#627)
3333
- Fixed errors breaking .NET Remoting on method invoke (#276)
34+
- Fixed PyObject.GetHashCode (#676)
3435

3536

3637
## [2.3.0][] - 2017-03-11

src/runtime/pyobject.cs

+1-1
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)