summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 16:55:12 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 16:55:12 +0200
commit513fff82ab281c6b6017ee176eccabb85bdabedb (patch)
tree159efd405fd9e879b2291416e24f77596c3fdcd2 /src
parent1d377bfd2fc391f15d39b230cbad48e49b81da95 (diff)
optimize Hills::sort() a bit
Diffstat (limited to 'src')
-rw-r--r--src/Hill.cxx2
1 files changed, 1 insertions, 1 deletions
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) {