From 513fff82ab281c6b6017ee176eccabb85bdabedb Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Mar 2009 16:55:12 +0200 Subject: optimize Hills::sort() a bit --- src/Hill.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hill.cxx b/src/Hill.cxx index d79f4ad..f45c197 100644 --- a/src/Hill.cxx +++ b/src/Hill.cxx @@ -246,7 +246,7 @@ void Hills::sort(SortType t) { int (*cmp)(const void *, const void *); - if (!m) + if (!m || num < 2) return; switch (t) { -- cgit v1.2.3