A _count is an unsigned int, not an Id
authorKlaus Kämpf <kkaempf@suse.de>
Mon, 22 Jun 2009 09:47:04 +0000 (11:47 +0200)
committerKlaus Kämpf <kkaempf@suse.de>
Mon, 22 Jun 2009 09:47:04 +0000 (11:47 +0200)
src/problems.c
src/problems.h

index 57bb545384b0c5c0017a57d3b0fc00de44da69d5..ccdb54c42d08a97ff158747a2f35fcbff9f78198 100644 (file)
@@ -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];
index b2ed55be2b8ccfd83fc95a249e80bd8c442fba8f..fc9ac18b31962435922d808f3cd6cce60f6f78bd 100644 (file)
@@ -28,11 +28,11 @@ void solver_disableproblem(struct _Solver *solv, Id v);
 void solver_enableproblem(struct _Solver *solv, Id v);
 int solver_prepare_solutions(struct _Solver *solv);
 
-Id solver_problem_count(struct _Solver *solv);
+unsigned int solver_problem_count(struct _Solver *solv);
 Id solver_next_problem(struct _Solver *solv, Id problem);
-Id solver_solution_count(struct _Solver *solv, Id problem);
+unsigned int solver_solution_count(struct _Solver *solv, Id problem);
 Id solver_next_solution(struct _Solver *solv, Id problem, Id solution);
-Id solver_solutionelement_count(struct _Solver *solv, Id problem, Id solution);
+unsigned int solver_solutionelement_count(struct _Solver *solv, Id problem, Id solution);
 Id solver_next_solutionelement(struct _Solver *solv, Id problem, Id solution, Id element, Id *p, Id *rp);
 
 void solver_take_solutionelement(struct _Solver *solv, Id p, Id rp, Queue *job);