summaryrefslogtreecommitdiff
path: root/src/position.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/position.cpp')
-rw-r--r--src/position.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/position.cpp b/src/position.cpp
index 69d50476..33859327 100644
--- a/src/position.cpp
+++ b/src/position.cpp
@@ -29,14 +29,14 @@ std::ostream& operator <<(std::ostream &os, const Position &p)
std::ostream& operator <<(std::ostream &os, const Path &path)
{
- Path::const_iterator i = path.begin();
+ Path::const_iterator i = path.begin(), i_end = path.end();
os << "(";
- while (i != path.end())
+ while (i != i_end)
{
os << *i;
++i;
- if (i != path.end())
+ if (i != i_end)
os << ", ";
}
os << ")";