From 4be1959fcce10cf5e4e98b7b64db160200762a7b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 27 Mar 2021 09:05:21 -0700 Subject: [PATCH] replace some unnecessary MAX calls with fmax --- lib/ortho/maze.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ortho/maze.c b/lib/ortho/maze.c index c12dfa03c..fcf96bb62 100644 --- a/lib/ortho/maze.c +++ b/lib/ortho/maze.c @@ -13,6 +13,7 @@ #define DEBUG +#include #include #include #include @@ -472,8 +473,8 @@ mkMaze (graph_t* g, int doLbls) bb.UR.y = ND_coord(n).y + h2; BB.LL.x = MIN(BB.LL.x, bb.LL.x); BB.LL.y = MIN(BB.LL.y, bb.LL.y); - BB.UR.x = MAX(BB.UR.x, bb.UR.x); - BB.UR.y = MAX(BB.UR.y, bb.UR.y); + BB.UR.x = fmax(BB.UR.x, bb.UR.x); + BB.UR.y = fmax(BB.UR.y, bb.UR.y); cp->bb = bb; cp->flags |= MZ_ISNODE; ND_alg(n) = cp; -- 2.40.0