X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Flist.h;h=15fcd4abd1c486ded6e39a049c27a7fc60e1b32c;hb=c272bb58f5cded827b8a4c94a419504f8ff4cc9e;hp=ddb98f76f67f76364b252ed809de1c2fd07ba701;hpb=d8be1b9abadf1f65eeaef86edee6654632473839;p=mesa.git diff --git a/src/glsl/list.h b/src/glsl/list.h index ddb98f76f67..15fcd4abd1c 100644 --- a/src/glsl/list.h +++ b/src/glsl/list.h @@ -684,7 +684,7 @@ inline void exec_node::insert_before(exec_list *before) exec_node_data(__type, (__list)->head, __field), \ * __next = \ exec_node_data(__type, (__node)->__field.next, __field); \ - __next != NULL; \ + (__node)->__field.next != NULL; \ __node = __next, __next = \ exec_node_data(__type, (__next)->__field.next, __field)) @@ -693,7 +693,7 @@ inline void exec_node::insert_before(exec_list *before) exec_node_data(__type, (__list)->tail_pred, __field), \ * __prev = \ exec_node_data(__type, (__node)->__field.prev, __field); \ - __prev != NULL; \ + (__node)->__field.prev != NULL; \ __node = __prev, __prev = \ exec_node_data(__type, (__prev)->__field.prev, __field))