summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/list.h b/list.h
index d122369f13..33b038ce8d 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