- fix problem sorting
authorMichael Schroeder <mls@suse.de>
Fri, 28 Nov 2008 17:26:21 +0000 (17:26 +0000)
committerMichael Schroeder <mls@suse.de>
Fri, 28 Nov 2008 17:26:21 +0000 (17:26 +0000)
src/solver.c

index d9212ad..354ce6d 100644 (file)
@@ -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;
     {
       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;
     }
       if (x)
        return x;
     }