Commit c5347462 authored by Morten Welinder's avatar Morten Welinder

nlsolve: use a g_assert for hinting gcc about number of vars.

Kills a warning.
parent d2c1603a
......@@ -321,6 +321,9 @@ rosenbrock_iter (GnmNlsolve *nl)
gnm_float eps = gnm_pow2 (-16);
int safety = 0;
// Give gcc a few hints.
g_assert (n >= 0 && n < (1<<20));
if (nl->tentative) {
nl->tentative--;
if (nl->tentative == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment