From 76fb56c0d4b829859fefa6a744c0183b4c3db00f Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 6 Jun 2011 17:17:29 +0200 Subject: [backend] more introspection: solver_ruleliterals, solver_rule2jobidx, solver_rule2job --- src/problems.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/problems.c') diff --git a/src/problems.c b/src/problems.c index 565ed9a..14e64b9 100644 --- a/src/problems.c +++ b/src/problems.c @@ -207,7 +207,7 @@ refine_suggestion(Solver *solv, Id *problem, Id sug, Queue *refined, int essenti solver_enableproblem(solv, problem[i]); if (sug < 0) - solver_reenablepolicyrules(solv, -(sug + 1)); + solver_reenablepolicyrules(solv, -sug); else if (sug >= solv->updaterules && sug < solv->updaterules_end) { /* enable feature rule */ @@ -292,7 +292,7 @@ refine_suggestion(Solver *solv, Id *problem, Id sug, Queue *refined, int essenti solver_enablerule(solv, r); /* enable corresponding feature rule */ } if (v < 0) - solver_reenablepolicyrules(solv, -(v + 1)); + solver_reenablepolicyrules(solv, -v); } else { -- cgit v1.2.3