Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06ded7a

Browse files
authored
Merge pull request#677 from GSPP/master
Fix PyObject.GetHashCode
2 parents19d854c +811f10f commit06ded7a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

‎AUTHORS.md

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

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
publicoverrideintGetHashCode()
911911
{
912-
returnRuntime.PyObject_Hash(obj).ToInt32();
912+
return((ulong)Runtime.PyObject_Hash(obj)).GetHashCode();
913913
}
914914

915915

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp