From: Matthew Fernandez Date: Tue, 8 Sep 2020 00:35:06 +0000 (-0700) Subject: remove a couple of sign comparison warnings X-Git-Tag: 2.46.0~20^2^2~82^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9a8b5b6a128a635075345e599a792916f6cab1a;p=graphviz remove a couple of sign comparison warnings --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 14f0c7add..de7a898e9 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -14,6 +14,7 @@ #include #include #include +#include #define RBCONST 12 #define RBCURVE .5 @@ -3537,7 +3538,8 @@ static void record_init(node_t * n) { field_t *info; pointf ul, sz; - int flip, len; + int flip; + size_t len; char *textbuf; /* temp buffer for storing labels */ int sides = BOTTOM | RIGHT | TOP | LEFT; @@ -3549,7 +3551,7 @@ static void record_init(node_t * n) * we need at least two bytes in textbuf, as well as accounting for the * error path involving "\\N" below. */ - len = MAX(MAX(len, 1), (int)strlen("\\N")); + len = MAX(MAX(len, 1), strlen("\\N")); textbuf = N_NEW(len + 1, char); if (!(info = parse_reclbl(n, flip, TRUE, textbuf))) { agerr(AGERR, "bad label format %s\n", ND_label(n)->text);