diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 16:55:12 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 16:55:12 +0200 |
commit | 513fff82ab281c6b6017ee176eccabb85bdabedb (patch) | |
tree | 159efd405fd9e879b2291416e24f77596c3fdcd2 | |
parent | 1d377bfd2fc391f15d39b230cbad48e49b81da95 (diff) |
optimize Hills::sort() a bit
-rw-r--r-- | src/Hill.cxx | 2 |
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) { |