Skip to content

Commit

Permalink
Fixes -Wincompatible-pointer-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Nov 3, 2023
1 parent ad2cde1 commit 8c7e1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions numba_dpex/core/runtime/_dpexrt_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ static int DPEXRT_sycl_queue_from_python(NRT_api_functions *nrt,
Py_INCREF(queue_obj);
queue_struct->meminfo =
nrt->manage_memory(queue_obj, NRT_MemInfo_pyobject_dtor);
queue_struct->parent = queue_obj;
queue_struct->parent = (PyObject *)queue_obj;
queue_struct->queue_ref = queue_ref;

return 0;
Expand Down Expand Up @@ -1299,7 +1299,7 @@ static PyObject *DPEXRT_sycl_queue_to_python(NRT_api_functions *nrt,
if (queue_obj == NULL) {
// Make create copy of queue_ref so we don't need to manage nrt lifetime
// from python object.
queue_obj = SyclQueue_Make(queuestruct->queue_ref);
queue_obj = (PyObject *)SyclQueue_Make(queuestruct->queue_ref);
}
else {
// Unfortunately we can not optimize (nrt->release that triggers
Expand Down Expand Up @@ -1399,7 +1399,7 @@ static PyObject *DPEXRT_sycl_event_to_python(NRT_api_functions *nrt,
if (event_obj == NULL) {
// Make create copy of event_ref so we don't need to manage nrt lifetime
// from python object.
event_obj = SyclEvent_Make(eventstruct->event_ref);
event_obj = (PyObject *)SyclEvent_Make(eventstruct->event_ref);
}
else {
// Unfortunately we can not optimize (nrt->release that triggers
Expand Down

0 comments on commit 8c7e1f7

Please sign in to comment.