From 091ae37c06eb8875f4cf939d676ac15fd455cd0d Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Mon, 11 May 2015 04:44:11 +0100 Subject: [PATCH] Fix bug in my previous patch in bit_vector::operator=() Signed-off-by: Nuno Lopes --- src/util/bit_vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/bit_vector.h b/src/util/bit_vector.h index 43b0e9619..f7af2019d 100644 --- a/src/util/bit_vector.h +++ b/src/util/bit_vector.h @@ -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);