Move n_search outside of assert as reported by static analyzer

This commit is contained in:
Aditya Kumar 2020-12-06 19:03:13 -08:00 committed by David Goldblatt
parent a559caf74a
commit 9522ae41d6

View File

@ -185,7 +185,8 @@ arena_decay_compute_purge_interval_impl(tsdn_t *tsdn, decay_t *decay,
lb = target; lb = target;
npurge_lb = npurge; npurge_lb = npurge;
} }
assert(n_search++ < lg_floor(SMOOTHSTEP_NSTEPS) + 1); assert(n_search < lg_floor(SMOOTHSTEP_NSTEPS) + 1);
++n_search;
} }
interval = decay_interval_ns * (ub + lb) / 2; interval = decay_interval_ns * (ub + lb) / 2;
label_done: label_done: