mirror of
https://github.com/Z3Prover/z3
synced 2025-07-27 06:27:56 +00:00
fix bounds bug
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
83e7107485
commit
b57353eff2
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ Revision History:
|
||||||
|
|
||||||
void fixed_bit_vector::set(fixed_bit_vector const& other, unsigned hi, unsigned lo) {
|
void fixed_bit_vector::set(fixed_bit_vector const& other, unsigned hi, unsigned lo) {
|
||||||
if ((lo % 32) == 0) {
|
if ((lo % 32) == 0) {
|
||||||
unsigned sz32 = (hi+1)/32;
|
unsigned sz32 = (hi-lo+1)/32;
|
||||||
unsigned lo32 = lo/32;
|
unsigned lo32 = lo/32;
|
||||||
for (unsigned i = 0; i < sz32; ++i) {
|
for (unsigned i = 0; i < sz32; ++i) {
|
||||||
m_data[lo32 + i] = other.m_data[i];
|
m_data[lo32 + i] = other.m_data[i];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue