diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-11-01 14:44:39 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-11-01 14:44:39 +0200 |
commit | 716ee9e223fd3a2ab73d7ab544c6276e43417e3a (patch) | |
tree | 0910e8e15cd8a1566a3ff85deebcd9cdc134742a | |
parent | 1aa962dbae2689cd6481db34a784f1f29281fe07 (diff) | |
download | apk-tools-716ee9e223fd3a2ab73d7ab544c6276e43417e3a.tar.gz apk-tools-716ee9e223fd3a2ab73d7ab544c6276e43417e3a.tar.bz2 apk-tools-716ee9e223fd3a2ab73d7ab544c6276e43417e3a.tar.xz apk-tools-716ee9e223fd3a2ab73d7ab544c6276e43417e3a.zip |
solver: fix zero score comparison
-rw-r--r-- | src/solver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solver.c b/src/solver.c index ff3c495..fbb0dec 100644 --- a/src/solver.c +++ b/src/solver.c @@ -976,7 +976,7 @@ int apk_solver_solve(struct apk_database *db, if (cmpscore(&ss->score, &ss->best_score) < 0) record_solution(ss); - if (cmpscore(&zero_score, &ss->score) <= 0) { + if (cmpscore(&zero_score, &ss->score) >= 0) { /* found solution - it is optimal because we permutate * each preferred local option first, and permutations * happen in topologally sorted order. */ |