Skip to content

Commit 75cc9d4

Browse files
committed
Correctly convert call args to Java objects.
1 parent d3835ef commit 75cc9d4

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ PyObject* PyObject_CallFunctionObjArgs(PyObject *callable, ...) {
503503
PyObject* PyObject_CallMethod(PyObject* object, const char* method, const char* fmt, ...) {
504504
PyObject* args;
505505
CALL_WITH_VARARGS(args, Py_BuildValue, 3, fmt);
506-
return to_sulong(truffle_invoke(PY_TRUFFLE_CEXT, "PyObject_CallMethod", to_java(object), truffle_read_string(method), args));
506+
return to_sulong(truffle_invoke(PY_TRUFFLE_CEXT, "PyObject_CallMethod", to_java(object), truffle_read_string(method), to_java(args)));
507507
}
508508

509509
PyObject* PyObject_Type(PyObject* obj) {

0 commit comments

Comments
 (0)