]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wconversion warning in aghtmlstr
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 27 Aug 2020 17:03:16 +0000 (19:03 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 7 Sep 2020 13:42:17 +0000 (15:42 +0200)
lib/cgraph/refstr.c

index 70a7e05e13010fd47c1e6974cf96902ea458f979..1ba98176a75a09bb39a5ddd6ff4ed1972894a3e7 100644 (file)
@@ -178,7 +178,7 @@ int aghtmlstr(char *s)
     if (s == NULL)
        return 0;
     key = (refstr_t *) (s - offsetof(refstr_t, store[0]));
-    return (key->refcnt & HTML_BIT);
+    return ((key->refcnt & HTML_BIT) != 0);
 }
 
 void agmarkhtmlstr(char *s)