From f036728dbb51e4ff705a4208b2c941b0ab7b8e60 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 2 Nov 2026 11:08:45 -0400 Subject: [PATCH] MT#55283 properly paranthesise Just in case... Change-Id: I564d8d9a8fcbe78e729d3a30e0228989631470a8 --- lib/iqueue.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/iqueue.h b/lib/iqueue.h index a6456a6cb..c292f64bd 100644 --- a/lib/iqueue.h +++ b/lib/iqueue.h @@ -87,13 +87,13 @@ #define i_queue_push_tail(list, ele) do { \ if ((list)->tail) { \ __auto_type __link = (__typeof((list)->offset)) (list)->tail; \ - __link->link.next = ele; \ + __link->link.next = (ele); \ } \ - __auto_type __link = (__typeof((list)->offset)) ele; \ + __auto_type __link = (__typeof((list)->offset)) (ele); \ __link->link.prev = (list)->tail; \ - (list)->tail = ele; \ + (list)->tail = (ele); \ if (!(list)->head) \ - (list)->head = ele; \ + (list)->head = (ele); \ (list)->length++; \ } while (0) @@ -101,19 +101,19 @@ #define i_queue_push_head(list, ele) do { \ if ((list)->head) { \ __auto_type __link = (__typeof((list)->offset)) (list)->head; \ - __link->link.prev = ele; \ + __link->link.prev = (ele); \ } \ - __auto_type __link = (__typeof((list)->offset)) ele; \ + __auto_type __link = (__typeof((list)->offset)) (ele); \ __link->link.next = (list)->head; \ - (list)->head = ele; \ + (list)->head = (ele); \ if (!(list)->tail) \ - (list)->tail = ele; \ + (list)->tail = (ele); \ (list)->length++; \ } while (0) #define i_queue_delete(list, ele) do { \ - __auto_type __link = (__typeof((list)->offset)) ele; \ + __auto_type __link = (__typeof((list)->offset)) (ele); \ if (__link->link.next) { \ __auto_type __next_link = (__typeof((list)->offset)) __link->link.next; \ __next_link->link.prev = __link->link.prev; \