Skip to content

Commit 01eeead

Browse files
committed
add missing native_to_java calls
1 parent 78fcebe commit 01eeead

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int PyDict_DelItemString(PyObject *d, const char *key) {
105105
}
106106

107107
int PyDict_Update(PyObject *a, PyObject *b) {
108-
PyObject* result = UPCALL_O(a, "update", b);
108+
PyObject* result = UPCALL_O(native_to_java(a), "update", native_to_java(b));
109109
if (PyErr_Occurred()) {
110110
return -1;
111111
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ PyObject* PyModule_GetDict(PyObject* o) {
125125
}
126126

127127
PyObject* PyModule_NewObject(PyObject* name) {
128-
return UPCALL_CEXT_O("PyModule_NewObject", name);
128+
return UPCALL_CEXT_O("PyModule_NewObject", native_to_java(name));
129129
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ Py_ssize_t PySlice_AdjustIndices(Py_ssize_t length, Py_ssize_t *start, Py_ssize_
8484
}
8585

8686
PyObject* PySlice_New(PyObject* start, PyObject *stop, PyObject *step) {
87-
return UPCALL_CEXT_O("PySlice_New", start, stop, step);
87+
return UPCALL_CEXT_O("PySlice_New", native_to_java(start), native_to_java(stop), native_to_java(step));
8888
}

0 commit comments

Comments
 (0)