From bd787d2a9786b015f894e12bcaa197e3e0bf1949 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 4 Jul 2021 22:33:42 -0400 Subject: [PATCH] Corrected the "cif coverage" command so that the coverage is not accidentally converted from (long long) back to (int); otherwise the coverage is wrong on any large layouts, especially full-chip sizes. --- cif/CIFsee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cif/CIFsee.c b/cif/CIFsee.c index 8eff6a5b..352b2fd0 100644 --- a/cif/CIFsee.c +++ b/cif/CIFsee.c @@ -515,7 +515,7 @@ cifCoverageFunc(tile, arg) Rect r; TiToRect(tile, &r); - cstats->coverage += (long long)((r.r_xtop - r.r_xbot) * (r.r_ytop - r.r_ybot)); + cstats->coverage += (long long)(r.r_xtop - r.r_xbot) * (long long)(r.r_ytop - r.r_ybot); GeoInclude(&r, &cstats->bounds); return(0);