Fixed warning

release/4.3a0
Frank Dellaert 2018-09-28 11:20:26 -04:00
parent bfd6f4cd9e
commit 4a8c2f666c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ void Balance2Way(ctrl_t *ctrl, graph_t *graph, real_t *ntpwgts)
if (graph->ncon == 1) {
/* return right away if the balance is OK */
if (iabs(ntpwgts[0]*graph->tvwgt[0]-graph->pwgts[0]) < 3*graph->tvwgt[0]/graph->nvtxs)
if (fabs(ntpwgts[0]*graph->tvwgt[0]-graph->pwgts[0]) < 3*graph->tvwgt[0]/graph->nvtxs)
return;
if (graph->nbnd > 0)