From: Ian Romanick Date: Sat, 27 Mar 2010 00:17:41 +0000 (-0700) Subject: Add missing parenthesis in foreach_iter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=605ff69b0dbcf3206e4c9af50732083be0c908de;p=mesa.git Add missing parenthesis in foreach_iter This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'. --- diff --git a/list.h b/list.h index d122369f13b..33b038ce8da 100644 --- a/list.h +++ b/list.h @@ -183,7 +183,7 @@ private: }; #define foreach_iter(iter_type, iter, container) \ - for (iter_type iter = container . iterator(); iter.has_next(); iter.next()) + for (iter_type iter = (container) . iterator(); iter.has_next(); iter.next()) #endif