Add missing parenthesis in foreach_iter

This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'.
This commit is contained in:
Ian Romanick 2010-03-26 17:17:41 -07:00
parent 8343550b42
commit 605ff69b0d
1 changed files with 1 additions and 1 deletions

2
list.h
View File

@ -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