We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a4f4d commit 94efaf8Copy full SHA for 94efaf8
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/CExtNodes.java
@@ -554,7 +554,7 @@ PFloat doDoubleNativeWrapper(DoubleNativeWrapper object) {
554
return materializedInt;
555
}
556
557
- @Specialization(guards = "isMaterialized(object)")
+ @Specialization(guards = {"object.getClass() == cachedClass", "isMaterialized(object)"})
558
Object doMaterialized(PrimitiveNativeWrapper object,
559
@SuppressWarnings("unused") @Cached("object.getClass()") Class<? extends PrimitiveNativeWrapper> cachedClass) {
560
return CompilerDirectives.castExact(object, cachedClass).getDelegate();
0 commit comments