]> granicus.if.org Git - graphviz/commitdiff
GDK plugin argb2rgba: squash -Wconversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 19:47:40 +0000 (12:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 01:03:37 +0000 (18:03 -0700)
plugin/gdk/gvdevice_gdk.c

index 372460a0071984acfc8ba607860086e1666a39f7..209002d497924fa77e2e10e24e6b7df9d30bf37a 100644 (file)
@@ -45,7 +45,7 @@ argb2rgba ( unsigned int width, unsigned int height, char *data)
     for (y = 0; y < height; y++) {
         for (x = 0; x < width; x++) {
             /* swap red and blue */
-            unsigned char r = data[Ra];
+            char r = data[Ra];
             data[Bb] = data[Ba];
            data[Rb] = r;
             data += 4;