From: Ivan Maidanski Date: Tue, 6 Nov 2018 21:30:18 +0000 (+0300) Subject: Remove redundant type casts in backgraph HEIGHT_UNKNOWN/IN_PROGRESS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d9b1a45b38f20f2bc76ff4d4c7ef2069f0542aa;p=gc 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). --- 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 */