Browse Source

MT#55283 avoid type cast

Change-Id: I9ae55874bcb93992088281603c401fdc87cd9fe8
pull/1910/head
Richard Fuchs 10 months ago
parent
commit
5a5c575740
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/containers.h

+ 3
- 3
lib/containers.h View File

@ -253,10 +253,10 @@ static inline void g_queue_clear_full(GQueue *q, GDestroyNotify free_func) {
g_queue_push_tail(&(Q)->q, __e); \
})
#define t_queue_insert_before(Q, l, e) ({ \
#define t_queue_insert_before(Q, k, e) ({ \
__typeof__((Q)->__t) __e = e; \
__typeof__((Q)->head) __l = l; \
g_queue_insert_before(&(Q)->q, (GList *) __l, __e); \
__typeof__((Q)->head) __l = k; \
g_queue_insert_before(&(Q)->q, &__l->l, __e); \
})
#define t_queue_sort(Q, f, d) ({ \


Loading…
Cancel
Save