From 9a1b86303d7d7b2295f410d1700a69e46d7e0ae0 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 14 Mar 2013 14:04:46 +0100 Subject: [PATCH] crush/CrushCompiler.cc: prefer prefix --operator for iterators Signed-off-by: Danny Al-Gaaf --- src/crush/CrushCompiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crush/CrushCompiler.cc b/src/crush/CrushCompiler.cc index c54a7b916e4..aee621d8e32 100644 --- a/src/crush/CrushCompiler.cc +++ b/src/crush/CrushCompiler.cc @@ -768,7 +768,7 @@ int CrushCompiler::compile(istream& in, const char *infn) assert(!line_pos.empty()); map::iterator p = line_pos.upper_bound(cpos); if (p != line_pos.begin()) - p--; + --p; int line = p->second; int pos = cpos - p->first; err << infn << ":" << line //<< ":" << (pos+1) -- 2.47.3