about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-03-23T19·19+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-03-23T19·19+0000
commite8f7978274708a8e0c29903910f4942da955c926 (patch)
treeee6fedb29e075339adfb721617b4fb52ac009456 /src/libutil
parent0910ae95680011915211769577a4219384b695af (diff)
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index f609e8944ba8..f4478b449cdc 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -15,7 +15,7 @@ namespace nix {
 
 
 #define foreach(it_type, it, collection)                                \
-    for (it_type it = collection.begin(); it != collection.end(); ++it)
+    for (it_type it = (collection).begin(); it != (collection).end(); ++it)
 
 
 /* Return an environment variable. */