diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-20 22:20:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-20 22:20:22 (GMT) |
commit | c388ad8910dbb1a3c478176d8b1ab3142fdbd9d5 (patch) | |
tree | 8d998e94a4056cff68978181b19816f604e20b29 /src/core | |
parent | d9226fdf0cbaf8aa302bdb44b069173014a85264 (diff) |
Completed the Python API for work groups.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/queue.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/queue.c b/src/core/queue.c index 9323803..035f1e0 100644 --- a/src/core/queue.c +++ b/src/core/queue.c @@ -109,8 +109,7 @@ wgroup_id_t setup_global_work_group(void) G_LOCK(_gg_mutex); - _global_group_ids = (wgroup_id_t *)realloc(_global_group_ids, - ++_global_group_count * sizeof(wgroup_id_t)); + _global_group_ids = realloc(_global_group_ids, ++_global_group_count * sizeof(wgroup_id_t)); _global_group_ids[_global_group_count - 1] = result; @@ -144,8 +143,7 @@ wgroup_id_t setup_tiny_global_work_group(guint count) G_LOCK(_gg_mutex); - _global_group_ids = (wgroup_id_t *)realloc(_global_group_ids, - ++_global_group_count * sizeof(wgroup_id_t)); + _global_group_ids = realloc(_global_group_ids, ++_global_group_count * sizeof(wgroup_id_t)); _global_group_ids[_global_group_count - 1] = result; |