From 7a523094e40ac1491faa85741fd868ae13cdb0c0 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Thu, 1 Sep 2016 22:12:21 +0200 Subject: [PATCH] Resolve one -Wsign-conversion in htmltable.c The local variable `cnt` could be made of type `size_t`. --- lib/common/htmltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 1ea18c1c9..8962f8134 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -1267,7 +1267,7 @@ static int processTbl(graph_t * g, htmltbl_t * tbl, htmlenv_t * env) pitem *rp; pitem *cp; Dt_t *cdict; - int r, c, cnt; + int r, c; htmlcell_t *cellp; htmlcell_t **cells; Dt_t *rows = tbl->u.p.rows; @@ -1278,7 +1278,7 @@ static int processTbl(graph_t * g, htmltbl_t * tbl, htmlenv_t * env) Dt_t *is = openIntSet(); rp = (pitem *) dtflatten(rows); - cnt = 0; + size_t cnt = 0; r = 0; while (rp) { cdict = rp->u.rp; -- 2.40.0