From 9499a9f80823bf936c6b525a3fe3ae8ee8c17e80 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Wed, 29 Oct 2014 22:20:04 -0500 Subject: Add debugging assertion --- bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench.c') diff --git a/bench.c b/bench.c index a5da95f..1317adf 100644 --- a/bench.c +++ b/bench.c @@ -44,7 +44,7 @@ int main() printf("%*lu %*lu ", CMP_WIDTH, counts[CURRENT].compare, MS_WIDTH, timediff_ms(&start, &stop)); print_counts(); - assert_sorted(size, t->cmp); + assert_sorted((void*)buffer, size, sizeof(int), t->cmp); } printf(" %*zu\n", SIZE_WIDTH, size); } -- cgit v1.2.3