Fix Buffer::changes_since if we get passed an invalid timestamp
This commit is contained in:
parent
b6105fa106
commit
80b1d88bb0
|
@ -91,8 +91,10 @@ inline size_t Buffer::timestamp() const
|
|||
|
||||
inline ConstArrayView<Buffer::Change> Buffer::changes_since(size_t timestamp) const
|
||||
{
|
||||
if (timestamp < m_changes.size())
|
||||
return { m_changes.data() + timestamp,
|
||||
m_changes.data() + m_changes.size() };
|
||||
return {};
|
||||
}
|
||||
|
||||
inline ByteCoord Buffer::back_coord() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user