]> granicus.if.org Git - graphviz/commitdiff
Resolve one -Wsign-conversion in htmltable.c
authorErwin Janssen <erwinjanssen@outlook.com>
Thu, 1 Sep 2016 20:12:21 +0000 (22:12 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 1 Sep 2016 20:12:21 +0000 (22:12 +0200)
The local variable `cnt` could be made of type `size_t`.

lib/common/htmltable.c

index 1ea18c1c9131a8e1a0ea7e1761d9467eadf36ea9..8962f813463b6b80fb31ef118960be984b2988db 100644 (file)
@@ -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;