diff --git a/src/buffer_iterator.inl.hh b/src/buffer_iterator.inl.hh index f171581e..1a9b5a95 100644 --- a/src/buffer_iterator.inl.hh +++ b/src/buffer_iterator.inl.hh @@ -36,14 +36,12 @@ inline void BufferIterator::clamp(bool avoid_eol) inline bool BufferIterator::operator==(const BufferIterator& iterator) const { - assert(m_buffer == iterator.m_buffer); - return (m_coord == iterator.m_coord); + return (m_buffer == iterator.m_buffer and m_coord == iterator.m_coord); } inline bool BufferIterator::operator!=(const BufferIterator& iterator) const { - assert(m_buffer == iterator.m_buffer); - return (m_coord != iterator.m_coord); + return (m_buffer != iterator.m_buffer or m_coord != iterator.m_coord); } inline bool BufferIterator::operator<(const BufferIterator& iterator) const