mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-17 02:30:08 +00:00
cxxrtl: Suppress un/signed comparison warning; this is positive
This commit is contained in:
parent
de99d67bbd
commit
c5c104f560
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ struct value : public expr_base<value<Bits>> {
|
|||
int64_t divisor_shift = divisor.ctlz() - dividend.ctlz();
|
||||
assert(divisor_shift >= 0);
|
||||
divisor = divisor.shl(value<Bits>{(chunk::type) divisor_shift});
|
||||
for (size_t step = 0; step <= divisor_shift; step++) {
|
||||
for (size_t step = 0; step <= (uint64_t) divisor_shift; step++) {
|
||||
quotient = quotient.shl(value<Bits>{1u});
|
||||
if (!dividend.ucmp(divisor)) {
|
||||
dividend = dividend.sub(divisor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue