From 56473644aa260aad93f21050a2064854a3448c13 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Wed, 3 Mar 2021 16:04:14 +0200 Subject: now up to 256 bit! Signed-off-by: Gediminas Jakutis --- src/mergesort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mergesort.c') diff --git a/src/mergesort.c b/src/mergesort.c index 1b21db7..053e702 100644 --- a/src/mergesort.c +++ b/src/mergesort.c @@ -7,6 +7,7 @@ #include "defs.h" #include "stream.h" #include "mergesort.h" +#include "util.h" static int merge(struct stream * const dest, struct stream * const A, struct stream * const B); @@ -53,7 +54,7 @@ static int merge(struct stream * const dest, struct stream * const A, struct str b = B->get(B); while (a || b) { - if (a && (!b || a->val <= b->val)) { + if (a && (!b || is_less_equal(a->val, b->val))) { dest->put(dest, a); a = A->get(A); } else { -- cgit v1.2.3