Skip to content

Commit 4dcc178

Browse files
committed
solver: Fix warning about signed vs unsigned
Recent compilers emit a warning when comparing `errs` with `maxerrs` when one is signed and the other is not. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
1 parent 1318f79 commit 4dcc178

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/solve.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ bool Root::jacobi_solver(list_g &eqs, list_g &vars, list_g &guesses)
829829
uint max = Settings.SolverIterations();
830830
uint maxerrs = Settings.SolverShuffles();
831831
uint iter = 0;
832-
int errs = 0;
832+
uint errs = 0;
833833
bool back = false; // Go backwards
834834
array_g j, v, d;
835835
algebraic_g magnitude, last, forward;

0 commit comments

Comments
 (0)