Skip to content

Commit 4e7267d

Browse files
committed
syn: Restore load-bearing (int) casts
Partially revert a recent tidying commit which introduced a bug by removing those casts. Signed-off-by: Martin Povišer <povik@cutebit.org>
1 parent edcc2e8 commit 4e7267d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/syn/src/flow/combinational_mapper.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ void Mapping::prepareMatches(const int npriority_cuts,
677677
int psSlot = 0;
678678
ClassMatch* matchBuf = allocMatches(nmatches_max);
679679

680-
for (int i = -1; i < cache[n1->fid].ps.size(); i++) {
681-
for (int j = -1; j < cache[n2->fid].ps.size(); j++) {
680+
for (int i = -1; i < (int) cache[n1->fid].ps.size(); i++) {
681+
for (int j = -1; j < (int) cache[n2->fid].ps.size(); j++) {
682682
Net* n1Cut = ((i == -1) ? t1 : cache[n1->fid].ps[i].cut);
683683
Net* n2Cut = ((j == -1) ? t2 : cache[n2->fid].ps[j].cut);
684684
int n1CutLen = (i == -1) ? 1 : cutLen(n1Cut);

0 commit comments

Comments
 (0)