]> granicus.if.org Git - graphviz/commitdiff
default_pencolor: use 'size_t' when representing the length of strings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 17:32:52 +0000 (10:32 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 17:32:52 +0000 (10:32 -0700)
Squashes 3 -Wconversion compiler warnings.

lib/common/emit.c

index 50da0f94db9f715cdea9b7fd0401c0172672b994..4f098562acd0e9090a4dbfc099ecdc1de21d28a2 100644 (file)
@@ -2016,9 +2016,9 @@ static void emit_attachment(GVJ_t * job, textlabel_t * lp, splines * spl)
 static char* default_pencolor(char *pencolor, char *deflt)
 {
     static char *buf;
-    static int bufsz;
+    static size_t bufsz;
     char *p;
-    int len, ncol;
+    size_t len, ncol;
 
     ncol = 1;
     for (p = pencolor; *p; p++) {