(svn r13279) -Codechange: simplify condition for terminating loop when reversing list order
authorsmatz
Mon, 26 May 2008 21:45:57 +0000
changeset 9375 bed4e8a213d9
parent 9374 4e9c2b65768e
child 9376 afdc4beedc99
(svn r13279) -Codechange: simplify condition for terminating loop when reversing list order
src/sortlist_type.h
--- a/src/sortlist_type.h	Mon May 26 21:40:52 2008 +0000
+++ b/src/sortlist_type.h	Mon May 26 21:45:57 2008 +0000
@@ -65,7 +65,7 @@
 
 		do {
 			Swap(*a, *b);
-		} while (((a + 1) != b) && (++a != --b));
+		} while (++a < --b);
 	}
 
 public: