]> granicus.if.org Git - graphviz/commitdiff
stylefn: cast a bitwise not, squashing a -Wconversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 16 Nov 2021 01:56:15 +0000 (17:56 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Dec 2021 00:29:45 +0000 (16:29 -0800)
lib/common/htmllex.c

index 4a688a73cdfc3543a11a72b0e110e47471816186..e0ac02a42019c49804a222e68320d38739094326 100644 (file)
@@ -175,7 +175,7 @@ static int stylefn(htmldata_t * p, char *v)
     for (tk = strtok (buf, DELIM); tk; tk = strtok (NULL, DELIM)) {
        if (!strcasecmp(tk, "ROUNDED")) p->style |= ROUNDED;
        else if (!strcasecmp(tk, "RADIAL")) p->style |= RADIAL;
-       else if(!strcasecmp(tk,"SOLID")) p->style &= ~(DOTTED|DASHED);
+       else if(!strcasecmp(tk,"SOLID")) p->style &= (unsigned short)~(DOTTED|DASHED);
        else if(!strcasecmp(tk,"INVISIBLE") || !strcasecmp(tk,"INVIS")) p->style |= INVISIBLE;
        else if(!strcasecmp(tk,"DOTTED")) p->style |= DOTTED;
        else if(!strcasecmp(tk,"DASHED")) p->style |= DASHED;