]> granicus.if.org Git - graphviz/commitdiff
gvpr: cast values when calling endString
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Aug 2022 03:30:01 +0000 (20:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Aug 2022 14:50:51 +0000 (07:50 -0700)
Squashes a -Wconversion warning and we know `c` is a char here.

lib/gvpr/parse.c

index b065f7ecc6c6589befc70ff779f301df7e685a43..f8753e22db4989e45bb90cd7951d075e14f5876f 100644 (file)
@@ -279,7 +279,7 @@ static int endBracket(Sfio_t * ins, agxbuf * outs, char bc, char ec)
                agxbputc(outs, (char) c);
        } else if (c == '\'' || c == '"') {
            agxbputc(outs, (char) c);
-           if (endString(ins, outs, c)) return -1;
+           if (endString(ins, outs, (char)c)) return -1;
        } else
            agxbputc(outs, (char) c);
     }