diff options
Diffstat (limited to 'lib/sort.c')
-rw-r--r-- | lib/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ void sort(void *base, size_t num, size_t size, } /* sort */ - for (i = n - size; i >= 0; i -= size) { + for (i = n - size; i > 0; i -= size) { swap(base, base + i, size); for (r = 0; r * 2 + size < i; r = c) { c = r * 2 + size; |