From: Matthew Fernandez Date: Sat, 14 Jan 2023 23:30:32 +0000 (-0800) Subject: bcomps split: use a more appropriate type for 'size' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aad072fd467b7f5f928d426080cd5ab62a634b5e;p=graphviz bcomps split: use a more appropriate type for 'size' Squashes 2 -Wconversion warnings. --- diff --git a/cmd/tools/bcomps.c b/cmd/tools/bcomps.c index 19d8962e6..fb3c573b2 100644 --- a/cmd/tools/bcomps.c +++ b/cmd/tools/bcomps.c @@ -294,11 +294,10 @@ static void usage(int v) static void split(char *name) { char *sfx = 0; - int size; sfx = strrchr(name, '.'); if (sfx) { - size = sfx - name; + size_t size = (size_t)(sfx - name); suffix = sfx + 1; path = gv_strndup(name, size); } else {