From: Matthew Fernandez Date: Wed, 10 Aug 2022 00:43:24 +0000 (-0700) Subject: xdot parseString: squash -Wconversion warings X-Git-Tag: 5.0.1~14^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8e8a41f014f72ff56b5279d4ceac48f45733989;p=graphviz xdot parseString: squash -Wconversion warings `i` is known non-negative here. --- diff --git a/lib/xdot/xdot.c b/lib/xdot/xdot.c index 0311169be..865386df7 100644 --- a/lib/xdot/xdot.c +++ b/lib/xdot/xdot.c @@ -128,8 +128,8 @@ static char *parseString(char *s, char **sp) return 0; } - char *c = gv_strndup(s, i); - if (strlen(c) != i) { + char *c = gv_strndup(s, (size_t)i); + if (strlen(c) != (size_t)i) { free (c); return 0; }