diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-08-03 12:44:16 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-08-03 12:44:16 -0500 |
commit | 85f2a592114832c67c70b9138905b44890b800bd (patch) | |
tree | 5996e28ba432730513cc07798d262323b4e9a56f /grailsort.c | |
parent | 7e8f512b93718083a6cb58527b0b51f4f70bc353 (diff) |
Remove unnecessary test of bnmel
Diffstat (limited to 'grailsort.c')
-rw-r--r-- | grailsort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grailsort.c b/grailsort.c index 379e23a..093a5a2 100644 --- a/grailsort.c +++ b/grailsort.c @@ -21,7 +21,7 @@ size_t merge(char *buf, char *base, size_t anmel, size_t bnmel, size_t width, cm char *b = base + anmel * width; size_t sorted; - for (sorted = 0; anmel && bnmel && cmp(base, b) <= 0; sorted++, anmel--) base += width; + for (sorted = 0; anmel && cmp(base, b) <= 0; sorted++, anmel--) base += width; swap(base, a, anmel * width); |