summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grailsort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/grailsort.c b/grailsort.c
index 2e0131a..3e86042 100644
--- a/grailsort.c
+++ b/grailsort.c
@@ -25,7 +25,7 @@ static size_t last_overlap(char *base, size_t bcount, size_t bwidth, size_t widt
return bcount;
}
-size_t merge(char *buf, char *a, char *b, size_t bufnmel, size_t anmel, size_t bnmel, size_t width, cmpfun cmp)
+size_t merge(char *buf, char *a, char *b, size_t anmel, size_t bnmel, size_t width, cmpfun cmp)
{
struct counts snapshot = counts[CURRENT];
@@ -130,7 +130,7 @@ void grailsort(void *unsorted, size_t nmel, size_t width, cmpfun cmp)
char *block_b = block_a + bwidth;
size_t bnmel = (blocks - overlap - 1) * blknmel + last_nmel;
- last_nmel = merge(buf, block_a, block_b, bufnmel, blknmel, bnmel, width, cmp);
+ last_nmel = merge(buf, block_a, block_b, blknmel, bnmel, width, cmp);
blocks = overlap;
}