From: Matthew Fernandez Date: Wed, 24 Feb 2021 02:11:03 +0000 (-0800) Subject: remove use of int as size_t in fullColor X-Git-Tag: 2.47.0~17^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=199f9fffddf6f144dc44ead148c0c2dd94dfe8dc;p=graphviz remove use of int as size_t in fullColor This removes two -Wconversion and one -Wsign-conversion warnings. --- diff --git a/lib/gvpr/actions.c b/lib/gvpr/actions.c index 6800be7b0..6b2c37daa 100644 --- a/lib/gvpr/actions.c +++ b/lib/gvpr/actions.c @@ -944,8 +944,8 @@ static char *canontoken(char *str) static char* fullColor (char* prefix, char* str) { static char *fulls; - static int allocated; - int len = strlen (prefix) + strlen (str) + 3; + static size_t allocated; + size_t len = strlen (prefix) + strlen (str) + 3; if (len >= allocated) { allocated = len + 10;