]> granicus.if.org Git - graphviz/commitdiff
squash a -Wsign-conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 14 Apr 2021 03:25:58 +0000 (20:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 20 Apr 2021 14:49:55 +0000 (07:49 -0700)
plugin/core/gvrender_core_fig.c

index b68364cecfbc26a42811b8be889b89258da64f23..7c946c7820018b45c6748c5cbb7ebe2b6081bd27 100644 (file)
@@ -55,8 +55,8 @@ static void figptarray(GVJ_t *job, pointf * A, int n, int close)
 static char *fig_string(char *s)
 {
     static char *buf = NULL;
-    static int bufsize = 0;
-    int pos = 0;
+    static size_t bufsize = 0;
+    size_t pos = 0;
     char *p;
     unsigned char c;