mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
Fix bug in my previous patch in bit_vector::operator=()
Signed-off-by: Nuno Lopes <nuno@linux.Home>
This commit is contained in:
parent
6645358fed
commit
091ae37c06
|
@ -186,10 +186,10 @@ public:
|
|||
bool operator!=(bit_vector const & other) const { return !operator==(other); }
|
||||
|
||||
bit_vector & operator=(bit_vector const & source) {
|
||||
m_num_bits = source.m_num_bits;
|
||||
if (!source.m_data)
|
||||
return *this;
|
||||
|
||||
m_num_bits = source.m_num_bits;
|
||||
if (m_capacity < source.m_capacity) {
|
||||
dealloc_svect(m_data);
|
||||
m_data = alloc_svect(unsigned, source.m_capacity);
|
||||
|
|
Loading…
Reference in a new issue