diff --git a/src/buffer.inl.hh b/src/buffer.inl.hh index 8397be33..25ccb674 100644 --- a/src/buffer.inl.hh +++ b/src/buffer.inl.hh @@ -118,14 +118,12 @@ inline BufferIterator::BufferIterator(const Buffer& buffer, ByteCoord coord) inline bool BufferIterator::operator==(const BufferIterator& iterator) const { - kak_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 { - kak_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