]> granicus.if.org Git - graphviz/commitdiff
common remove an unnecessary '|='
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 3 Nov 2022 01:47:54 +0000 (18:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Nov 2022 01:14:25 +0000 (18:14 -0700)
All calls into this function set the `flags` parameter to 0 beforehand.

lib/common/arrows.c

index 4e925873228d77cbe84a58c022932efd0e64aa21..28688ec9c3f81f573965496d78fdb7cdab425016 100644 (file)
@@ -175,7 +175,7 @@ static char *arrow_match_shape(char *name, int *flag)
     }
     if (f && !(f & ((1 << BITS_PER_ARROW_TYPE) - 1)))
        f |= ARR_TYPE_NORM;
-    *flag |= f;
+    *flag = f;
     return rest;
 }