From: Matthew Fernandez Date: Sat, 19 Nov 2022 23:46:19 +0000 (-0800) Subject: neatogen: convert 'Site.refcnt' to unsigned X-Git-Tag: 7.0.3~1^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f04bf36003c92051034d40782ce212123f6e637;p=graphviz neatogen: convert 'Site.refcnt' to unsigned This count is never intended to go negative. So using an unsigned type gives us one more bit. Though reference counts of this object are not expected to reach 2³¹, so this is mostly just for clarity. --- diff --git a/lib/neatogen/site.h b/lib/neatogen/site.h index 2a9b0f196..3e54acb5c 100644 --- a/lib/neatogen/site.h +++ b/lib/neatogen/site.h @@ -22,7 +22,7 @@ extern "C" { typedef struct Site { Point coord; size_t sitenbr; - int refcnt; + unsigned refcnt; } Site; extern int siteidx;