]> granicus.if.org Git - graphviz/commitdiff
gvpr endString: squash a -Wconversion waning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 3 Aug 2022 01:37:21 +0000 (18:37 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Aug 2022 00:03:40 +0000 (17:03 -0700)
`c` is known to be '\\' here.

lib/gvpr/parse.c

index 32ac232384bdff37a7dc8d951c8f8dda44c4d225..2dc2592ea959789ddd0ff0aba3cb7d83b7b31c51 100644 (file)
@@ -240,7 +240,7 @@ static int endString(Sfio_t * ins, agxbuf * outs, char ec)
 
     while ((c = sfgetc(ins)) != ec) {
        if (c == '\\') {
-           agxbputc(outs, c);
+           agxbputc(outs, (char)c);
            c = sfgetc(ins);
        }
        if (c < 0) {