Skip to content

Commit 8c7e1f7

Browse files
author
Diptorup Deb
committed
Fixes -Wincompatible-pointer-types
1 parent ad2cde1 commit 8c7e1f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numba_dpex/core/runtime/_dpexrt_python.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ static int DPEXRT_sycl_queue_from_python(NRT_api_functions *nrt,
12621262
Py_INCREF(queue_obj);
12631263
queue_struct->meminfo =
12641264
nrt->manage_memory(queue_obj, NRT_MemInfo_pyobject_dtor);
1265-
queue_struct->parent = queue_obj;
1265+
queue_struct->parent = (PyObject *)queue_obj;
12661266
queue_struct->queue_ref = queue_ref;
12671267

12681268
return 0;
@@ -1299,7 +1299,7 @@ static PyObject *DPEXRT_sycl_queue_to_python(NRT_api_functions *nrt,
12991299
if (queue_obj == NULL) {
13001300
// Make create copy of queue_ref so we don't need to manage nrt lifetime
13011301
// from python object.
1302-
queue_obj = SyclQueue_Make(queuestruct->queue_ref);
1302+
queue_obj = (PyObject *)SyclQueue_Make(queuestruct->queue_ref);
13031303
}
13041304
else {
13051305
// Unfortunately we can not optimize (nrt->release that triggers
@@ -1399,7 +1399,7 @@ static PyObject *DPEXRT_sycl_event_to_python(NRT_api_functions *nrt,
13991399
if (event_obj == NULL) {
14001400
// Make create copy of event_ref so we don't need to manage nrt lifetime
14011401
// from python object.
1402-
event_obj = SyclEvent_Make(eventstruct->event_ref);
1402+
event_obj = (PyObject *)SyclEvent_Make(eventstruct->event_ref);
14031403
}
14041404
else {
14051405
// Unfortunately we can not optimize (nrt->release that triggers

0 commit comments

Comments
 (0)