Skip to content

Commit 4070d1e

Browse files
committed
Generalize dynamic cast MR.
1 parent 087aae4 commit 4070d1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/PythonObjectNativeWrapperMR.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public class PythonObjectNativeWrapperMR {
123123
abstract static class GetDynamicTypeNode extends Node {
124124
@Child GetClassNode getClass = GetClassNode.create();
125125

126-
public Object access(PythonObjectNativeWrapper object) {
127-
PythonClass klass = getClass.execute(object.getPythonObject());
126+
public Object access(PythonNativeWrapper object) {
127+
PythonClass klass = getClass.execute(object.getDelegate());
128128
Object sulongType = klass.getSulongType();
129129
if (sulongType == null) {
130130
CompilerDirectives.transferToInterpreter();

0 commit comments

Comments
 (0)