Skip to content

Commit 9fe5c43

Browse files
committed
Fix compilation warnings
1 parent b3eea77 commit 9fe5c43

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ int PyMethodDescr_Check(PyObject* method) {
6767
return UPCALL_CEXT_I(_jls_PyMethodDescr_Check, native_to_java(method));
6868
}
6969

70-
typedef PyObject* (*PyDescr_NewClassMethod_fun_t)(void* name,
70+
typedef PyObject* (*PyDescr_NewClassMethod_fun_t)(void* name,
7171
const char* doc,
72-
int flags,
73-
int wrapper,
74-
void* methObj,
72+
int flags,
73+
int wrapper,
74+
void* methObj,
7575
void* primary);
7676
UPCALL_TYPED_ID(PyDescr_NewClassMethod, PyDescr_NewClassMethod_fun_t);
7777
PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method) {
@@ -84,7 +84,7 @@ PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method) {
8484
type);
8585
}
8686

87-
typedef PyObject* (*PyDescr_NewGetSet_fun_t)(void* name,
87+
typedef PyObject* (*PyDescr_NewGetSet_fun_t)(void* name,
8888
PyTypeObject *type,
8989
void *get,
9090
void *set,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int PyList_SetSlice(PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v)
9494

9595
UPCALL_ID(PyList_Extend);
9696
PyObject * _PyList_Extend(PyListObject *self, PyObject *iterable) {
97-
return UPCALL_CEXT_O(_jls_PyList_Extend, native_to_java(self), native_to_java(iterable));
97+
return UPCALL_CEXT_O(_jls_PyList_Extend, native_to_java((PyObject *)self), native_to_java(iterable));
9898
}
9999

100100
UPCALL_ID(PyList_Sort);

0 commit comments

Comments
 (0)