mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
skip last power
This commit is contained in:
parent
8a7d971264
commit
1676378be9
|
@ -94,7 +94,8 @@ namespace sls {
|
||||||
rational p(1), r(0);
|
rational p(1), r(0);
|
||||||
for (unsigned i = 0; i < nw; ++i) {
|
for (unsigned i = 0; i < nw; ++i) {
|
||||||
r += p * rational((*this)[i]);
|
r += p * rational((*this)[i]);
|
||||||
p *= rational::power_of_two(8 * sizeof(digit_t));
|
if (i + 1 < nw)
|
||||||
|
p *= rational::power_of_two(8 * sizeof(digit_t));
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue