mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 18:02:52 +02:00
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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user