solver: fix zero score comparison

cute-signatures
Timo Teräs 2011-11-01 14:44:39 +02:00
parent 1aa962dbae
commit 716ee9e223
1 changed files with 1 additions and 1 deletions

View File

@ -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. */