Like the prior commit, the problem fixed in this commit seems to have been a
mistake in
ebd6191b0eec6e23d96c92aaa06212de339207e3 in not updating these
variables to doubles when transitioning to double-based points. Squashes 5
-Wfloat-conversion warnings.
free (edgelist);
}
else if (agtail(e0) == aghead(e0)) {
- int b, sizey, r;
+ int b, r;
+ double sizey;
n = agtail(e0);
r = ND_rank(n);
if (r == GD_maxrank(g)) {
sizey = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y;
}
else {
- int upy = ND_coord(GD_rank(g)[r-1].v[0]).y - ND_coord(n).y;
- int dwny = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y;
+ double upy = ND_coord(GD_rank(g)[r-1].v[0]).y - ND_coord(n).y;
+ double dwny = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y;
sizey = MIN(upy, dwny);
}
makeSelfEdge(edges, ind, cnt, sd.Multisep, sizey / 2, &sinfo);