File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1262,7 +1262,7 @@ static int DPEXRT_sycl_queue_from_python(NRT_api_functions *nrt,
1262
1262
Py_INCREF (queue_obj );
1263
1263
queue_struct -> meminfo =
1264
1264
nrt -> manage_memory (queue_obj , NRT_MemInfo_pyobject_dtor );
1265
- queue_struct -> parent = queue_obj ;
1265
+ queue_struct -> parent = ( PyObject * ) queue_obj ;
1266
1266
queue_struct -> queue_ref = queue_ref ;
1267
1267
1268
1268
return 0 ;
@@ -1299,7 +1299,7 @@ static PyObject *DPEXRT_sycl_queue_to_python(NRT_api_functions *nrt,
1299
1299
if (queue_obj == NULL ) {
1300
1300
// Make create copy of queue_ref so we don't need to manage nrt lifetime
1301
1301
// from python object.
1302
- queue_obj = SyclQueue_Make (queuestruct -> queue_ref );
1302
+ queue_obj = ( PyObject * ) SyclQueue_Make (queuestruct -> queue_ref );
1303
1303
}
1304
1304
else {
1305
1305
// Unfortunately we can not optimize (nrt->release that triggers
@@ -1399,7 +1399,7 @@ static PyObject *DPEXRT_sycl_event_to_python(NRT_api_functions *nrt,
1399
1399
if (event_obj == NULL ) {
1400
1400
// Make create copy of event_ref so we don't need to manage nrt lifetime
1401
1401
// from python object.
1402
- event_obj = SyclEvent_Make (eventstruct -> event_ref );
1402
+ event_obj = ( PyObject * ) SyclEvent_Make (eventstruct -> event_ref );
1403
1403
}
1404
1404
else {
1405
1405
// Unfortunately we can not optimize (nrt->release that triggers
You can’t perform that action at this time.
0 commit comments