File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -2661,22 +2661,9 @@ long hash(PInt self) {
2661
2661
}
2662
2662
2663
2663
@ Specialization
2664
- long hash (PythonNativeVoidPtr self ,
2665
- @ CachedLibrary (limit = "1" ) InteropLibrary lib ) {
2666
- if (lib .isPointer (self .object )) {
2667
- try {
2668
- long ptrVal = lib .asPointer (self .object );
2669
- return PythonObjectLibrary .hash (ptrVal );
2670
- } catch (UnsupportedMessageException e ) {
2671
- // fall through
2672
- }
2673
- }
2674
- return doHashCode (self .object );
2675
- }
2676
-
2677
2664
@ TruffleBoundary
2678
- long doHashCode ( Object o ) {
2679
- return o .hashCode ();
2665
+ long hash ( PythonNativeVoidPtr self ) {
2666
+ return self . object .hashCode ();
2680
2667
}
2681
2668
2682
2669
}
You can’t perform that action at this time.
0 commit comments