From a086e97f39be3bca91682973f11f6bcc1a479237 Mon Sep 17 00:00:00 2001 From: erg Date: Fri, 3 Oct 2008 19:52:09 +0000 Subject: [PATCH] Really fix int-to-float conversion problem --- lib/neatogen/neatoinit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index 4106ee8ca..a19aa168d 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -402,12 +402,12 @@ static pos_edge nop_init_edges(Agraph_t * g) * Scans for a correct bb attribute. If available, sets it * in the graph and returns 1. */ -#define BS "%f,%f,%f,%f" +#define BS "%lf,%lf,%lf,%lf" static int chkBB(Agraph_t * g, attrsym_t * G_bb) { char *s; - box bb; + boxf bb; s = agxget(g, G_bb->index); if (sscanf(s, BS, &bb.LL.x, &bb.LL.y, &bb.UR.x, &bb.UR.y) == 4) { @@ -416,11 +416,11 @@ static int chkBB(Agraph_t * g, attrsym_t * G_bb) * we assume the input was produced using -y, so we normalize * the bb. */ - int tmp = bb.LL.y; + double tmp = bb.LL.y; bb.LL.y = bb.UR.y; bb.UR.y = tmp; } - B2BF(bb, GD_bb(g)); + GD_bb(g) = bb; return 1; } else return 0; -- 2.40.0