1
0
mirror of synced 2026-04-20 11:06:45 +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

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