Skip to content

Commit 0d6ccad

Browse files
committed
Refactor 'typeobject.c'.
1 parent 62e55f4 commit 0d6ccad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ PyTypeObject PyBaseObject_Type = PY_TRUFFLE_TYPE("object", &PyType_Type, Py_TPFL
5151
PyTypeObject PySuper_Type = PY_TRUFFLE_TYPE("super", &PyType_Type, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, sizeof(superobject));
5252

5353
int PyType_IsSubtype(PyTypeObject* a, PyTypeObject* b) {
54-
return polyglot_as_i32(polyglot_invoke(PY_TRUFFLE_CEXT, "PyType_IsSubtype", to_java((PyObject*)a), to_java((PyObject*)b)));
54+
return UPCALL_CEXT_I("PyType_IsSubtype", native_to_java((PyObject*)a), native_to_java((PyObject*)b));
5555
}

0 commit comments

Comments
 (0)