]> granicus.if.org Git - graphviz/commitdiff
squash a -Wconversion warning in glCompCreateFontFile
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Sep 2020 23:58:17 +0000 (16:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Sep 2020 02:24:16 +0000 (19:24 -0700)
lib/glcomp/glpangofont.c

index 57333f26e43951df061d9ada73f4f04a4cf77163..0ef5d0eae4981a3b5da518fce1c8000185cead33 100644 (file)
@@ -126,7 +126,7 @@ int glCompCreateFontFile(char *fontdescription, int fs, char *fontfile,
     for (c = 0; c < 256; c++) {
        counter++;
        if ((c != 38) && (c != 60) && (c != 128) && (c < 129))
-           buf[0] = c;
+           buf[0] = (char)c;
        else
            buf[0] = ' ';
        cairo_move_to(cr, X, Y);