Skip to content

Commit 6a95c2c

Browse files
committed
remove landing function around PyState_FindModule. fixes ujson load
1 parent 2f6b748 commit 6a95c2c

File tree

1 file changed

+3
-2
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ PyThreadState* PyGILState_GetThisThreadState(void) {
7878
return polyglot_invoke(PY_TRUFFLE_CEXT, "PyThreadState_Get");
7979
}
8080

81-
UPCALL_ID(PyState_FindModule)
81+
typedef PyObject* (*find_module_fun_t)(long index);
82+
UPCALL_TYPED_ID(PyState_FindModule, find_module_fun_t);
8283
PyObject* PyState_FindModule(struct PyModuleDef* module) {
83-
return UPCALL_CEXT_O(_jls_PyState_FindModule, module->m_base.m_index);
84+
return _jls_PyState_FindModule(module->m_base.m_index);
8485
}
8586

8687
int PyState_AddModule(PyObject* module, struct PyModuleDef* def) {

0 commit comments

Comments
 (0)