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.
This commit is contained in:
Tim Edwards 2021-07-04 22:33:42 -04:00
parent 958d6f1670
commit bd787d2a97
1 changed files with 1 additions and 1 deletions

View File

@ -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);