From: Matthew Fernandez Date: Mon, 6 Sep 2021 18:15:37 +0000 (-0700) Subject: tcldot myagxset: use a 'size_t' for string length instead of 'int' X-Git-Tag: 2.49.1~31^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=038ba903d5f852f5297e01087adcd62128e5abe6;p=graphviz tcldot myagxset: use a 'size_t' for string length instead of 'int' Squashes a -Wconversion compiler warning. --- diff --git a/tclpkg/tcldot/tcldot-util.c b/tclpkg/tcldot/tcldot-util.c index 4b0162b30..81dc54784 100644 --- a/tclpkg/tcldot/tcldot-util.c +++ b/tclpkg/tcldot/tcldot-util.c @@ -130,11 +130,10 @@ void deleteGraph(gctx_t * gctx, Agraph_t *g) static void myagxset(void *obj, Agsym_t *a, char *val) { - int len; char *hs; if (strcmp(a->name, "label") == 0 && val[0] == '<') { - len = strlen(val); + size_t len = strlen(val); if (val[len-1] == '>') { hs = strdup(val+1); *(hs+len-2) = '\0';