From: Ben Pfaff Date: Sat, 20 Dec 2003 07:33:12 +0000 (+0000) Subject: Fri Dec 19 23:27:45 2003 Ben Pfaff X-Git-Tag: v0.4.0~411 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57fab3df7dee0c6d5b49eabfcdb8bb548b15c35b;p=pspp-builds.git Fri Dec 19 23:27:45 2003 Ben Pfaff * algorithm.c: (binary_search) Fix assertion. --- diff --git a/src/ChangeLog b/src/ChangeLog index 15076a0d..e72f20ae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 19 23:27:45 2003 Ben Pfaff + + * algorithm.c: (binary_search) Fix assertion. + Fri Dec 19 21:31:48 2003 Ben Pfaff * sysfile-info.c: (compare_vectors_by_name) Rewrite. diff --git a/src/algorithm.c b/src/algorithm.c index c6bdae27..66be93d6 100644 --- a/src/algorithm.c +++ b/src/algorithm.c @@ -338,7 +338,7 @@ binary_search (const void *array, size_t count, size_t size, { assert (array != NULL); assert (count <= INT_MAX); - assert (aux != NULL); + assert (compare != NULL); if (count != 0) {