From 339106408b2d903a34dff2e19e42c4ef1b226ef1 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 12 Nov 2021 19:26:31 -0800 Subject: [PATCH] bcomps getName: use size_t for buffer lengths Squashes some -Wconversion warnings. --- cmd/tools/bcomps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tools/bcomps.c b/cmd/tools/bcomps.c index 52461a29e..2648fd004 100644 --- a/cmd/tools/bcomps.c +++ b/cmd/tools/bcomps.c @@ -112,13 +112,12 @@ static char *getName(int ng, int nb) { char *name; static char *buf; - int sz; if ((ng == 0) && (nb == 0)) name = outfile; else { if (!buf) { - sz = strlen(outfile) + 100; /* enough to handle '__' */ + size_t sz = strlen(outfile) + 100; // enough to handle '__' buf = malloc(sz); } if (suffix) { -- 2.40.0