diff --git a/include/disruptorplus/sequence_barrier_group.hpp b/include/disruptorplus/sequence_barrier_group.hpp index 1681a97..0fae2cf 100644 --- a/include/disruptorplus/sequence_barrier_group.hpp +++ b/include/disruptorplus/sequence_barrier_group.hpp @@ -161,6 +161,8 @@ namespace disruptorplus { assert(!m_sequences.empty()); + size_t count = m_sequences.size(); + sequence_t current = minimum_sequence_after(sequence, count, m_sequences.data()); if (difference(current, sequence) >= 0) { @@ -199,6 +201,8 @@ namespace disruptorplus { assert(!m_sequences.empty()); + size_t count = m_sequences.size(); + sequence_t current = minimum_sequence_after(sequence, count, m_sequences.data()); if (difference(current, sequence) >= 0) {