From: Danny Al-Gaaf Date: Thu, 14 Mar 2013 13:04:46 +0000 (+0100) Subject: crush/CrushCompiler.cc: prefer prefix --operator for iterators X-Git-Tag: v0.60~74^2~35 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a1b86303d7d7b2295f410d1700a69e46d7e0ae0;p=ceph.git crush/CrushCompiler.cc: prefer prefix --operator for iterators Signed-off-by: Danny Al-Gaaf --- diff --git a/src/crush/CrushCompiler.cc b/src/crush/CrushCompiler.cc index c54a7b916e4e..aee621d8e32d 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)