3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00

fix bounds bug

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-22 18:06:18 -07:00
parent 83e7107485
commit b57353eff2

View file

@ -26,7 +26,7 @@ Revision History:
void fixed_bit_vector::set(fixed_bit_vector const& other, unsigned hi, unsigned lo) {
if ((lo % 32) == 0) {
unsigned sz32 = (hi+1)/32;
unsigned sz32 = (hi-lo+1)/32;
unsigned lo32 = lo/32;
for (unsigned i = 0; i < sz32; ++i) {
m_data[lo32 + i] = other.m_data[i];