mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-16 18:20:03 +00:00
Merge pull request #5739 from kivikakk/push-nsqznnrrssrn
cxxrtl: Suppress un/signed comparison warning; this is positive
This commit is contained in:
commit
4d725ee84d
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