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

lib/gvpr/parse.c

index f8753e22db4989e45bb90cd7951d075e14f5876f..104ffc26dc08079119b75d8df11adf48787e0760 100644 (file)
@@ -302,7 +302,7 @@ static char *parseBracket(Sfio_t * str, agxbuf * buf, int bc, int ec)
        return 0;
     }
     startLine = lineno;
-    c = endBracket(str, buf, bc, ec);
+    c = endBracket(str, buf, bc, (char)ec);
     if (c < 0) {
        if (!getErrorErrors())
            error(ERROR_ERROR,