From 7d9b1a45b38f20f2bc76ff4d4c7ef2069f0542aa Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 7 Nov 2018 00:30:18 +0300 Subject: [PATCH] Remove redundant type casts in backgraph HEIGHT_UNKNOWN/IN_PROGRESS (code refactoring) * backgraph.c [MAKE_BACK_GRAPH] (HEIGHT_UNKNOWN, HEIGHT_IN_PROGRESS): Remove unneeded type cast (to signed_word). --- backgraph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backgraph.c b/backgraph.c index 20047fb9..93b50b81 100644 --- a/backgraph.c +++ b/backgraph.c @@ -62,9 +62,9 @@ typedef struct back_edges_struct { signed_word height; /* Longest path through unreachable nodes to this node */ /* that we found using depth first search. */ +# define HEIGHT_UNKNOWN (-2) +# define HEIGHT_IN_PROGRESS (-1) -# define HEIGHT_UNKNOWN ((signed_word)(-2)) -# define HEIGHT_IN_PROGRESS ((signed_word)(-1)) ptr_t edges[MAX_IN]; struct back_edges_struct *cont; /* Pointer to continuation structure; we use only the */ -- 2.40.0