From a7761332f6c7170388d3f8542ef680e0f509735e Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 26 May 2008 21:45:57 +0000 Subject: [PATCH] (svn r13279) -Codechange: simplify condition for terminating loop when reversing list order --- src/sortlist_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sortlist_type.h b/src/sortlist_type.h index 1febe5a7d5..0d681eb395 100644 --- a/src/sortlist_type.h +++ b/src/sortlist_type.h @@ -65,7 +65,7 @@ public: // Temporary: public for conversion only do { Swap(*a, *b); - } while (((a + 1) != b) && (++a != --b)); + } while (++a < --b); } public: