diff options
author | Klaus Kämpf <kkaempf@suse.de> | 2009-06-22 11:47:04 +0200 |
---|---|---|
committer | Klaus Kämpf <kkaempf@suse.de> | 2009-06-22 11:47:04 +0200 |
commit | ecb4d9039a348c69c423bf90863a776dc8f72205 (patch) | |
tree | 0f6f0dbb651d4b56e3b7c1289ecb3a43c61f0987 /src/problems.c | |
parent | 87bfd053490e20b82f0685a55efa30f148554c63 (diff) | |
download | libsolv-ecb4d9039a348c69c423bf90863a776dc8f72205.tar.gz libsolv-ecb4d9039a348c69c423bf90863a776dc8f72205.tar.bz2 libsolv-ecb4d9039a348c69c423bf90863a776dc8f72205.zip |
A _count is an unsigned int, not an Id
Diffstat (limited to 'src/problems.c')
-rw-r--r-- | src/problems.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/problems.c b/src/problems.c index 57bb545..ccdb54c 100644 --- a/src/problems.c +++ b/src/problems.c @@ -606,7 +606,7 @@ create_solutions(Solver *solv, int probnr, int solidx) /**************************************************************************/ -Id +unsigned int solver_problem_count(Solver *solv) { return solv->problems.count / 2; @@ -620,7 +620,7 @@ solver_next_problem(Solver *solv, Id problem) return (problem + 1) * 2 - 1 < solv->problems.count ? problem + 1 : 0; } -Id +unsigned int solver_solution_count(Solver *solv, Id problem) { Id solidx = solv->problems.elements[problem * 2 - 1]; @@ -638,7 +638,7 @@ solver_next_solution(Solver *solv, Id problem, Id solution) return solv->solutions.elements[solidx + solution + 1] ? solution + 1 : 0; } -Id +unsigned int solver_solutionelement_count(Solver *solv, Id problem, Id solution) { Id solidx = solv->problems.elements[problem * 2 - 1]; |