From 0578f769225db59cea38dccf09269d2e234f37ef Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 28 Nov 2008 17:26:21 +0000 Subject: [PATCH] - fix problem sorting --- src/solver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solver.c b/src/solver.c index d9212ad..354ce6d 100644 --- a/src/solver.c +++ b/src/solver.c @@ -3224,8 +3224,8 @@ problems_sortcmp(const void *ap, const void *bp) { Queue *job = problems_sort_data; int af = job->elements[-a - 1] & SOLVER_ESSENTIAL; - int bf = job->elements[-a - 1] & SOLVER_ESSENTIAL; - int x = bf - af; + int bf = job->elements[-b - 1] & SOLVER_ESSENTIAL; + int x = af - bf; if (x) return x; } -- 2.7.4