3
0
Fork 0
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:
Catherine 2026-03-11 09:00:22 +00:00 committed by GitHub
commit 4d725ee84d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);