summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-12-20 22:20:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-12-20 22:20:22 (GMT)
commitc388ad8910dbb1a3c478176d8b1ab3142fdbd9d5 (patch)
tree8d998e94a4056cff68978181b19816f604e20b29 /src/core
parentd9226fdf0cbaf8aa302bdb44b069173014a85264 (diff)
Completed the Python API for work groups.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/queue.c6
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;