Revert "One more signed vs unsigned comparison fix"
This reverts commit 3c5bf034ca.
A latter patch is more complete.
This commit is contained in:
parent
add84b153c
commit
2b4f7f8aed
|
|
@ -1558,8 +1558,7 @@ NetExpr* PEIdent::elaborate_expr_net_idx_do_(Design*des, NetScope*scope,
|
|||
// If the part select covers exactly the entire
|
||||
// vector, then do not bother with it. Return the
|
||||
// signal itself.
|
||||
long l = net->sig()->sb_to_idx(lsv);
|
||||
if (l >= 0 && (unsigned) l == (wid-1) && wid == net->vector_width())
|
||||
if (net->sig()->sb_to_idx(lsv) == (wid-1) && wid == net->vector_width())
|
||||
return net;
|
||||
|
||||
// Otherwise, make a part select that covers the right range.
|
||||
|
|
|
|||
Loading…
Reference in New Issue