]> granicus.if.org Git - gc/commitdiff
Remove redundant type casts in backgraph HEIGHT_UNKNOWN/IN_PROGRESS
authorIvan Maidanski <ivmai@mail.ru>
Tue, 6 Nov 2018 21:30:18 +0000 (00:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 6 Nov 2018 21:30:18 +0000 (00:30 +0300)
(code refactoring)

* backgraph.c [MAKE_BACK_GRAPH] (HEIGHT_UNKNOWN, HEIGHT_IN_PROGRESS):
Remove unneeded type cast (to signed_word).

backgraph.c

index 20047fb96e9735ab9b13c24063aa4ea3141f3402..93b50b81630a50a0cae7ec91289b0c0ea5af2d9a 100644 (file)
@@ -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   */