From 8a829435cd0b72a8f329c03605d710214c523863 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 16 Apr 2018 23:30:57 -0700 Subject: [PATCH] ircd::m::vm: Special case sequence number zero for iterator. --- ircd/m/vm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircd/m/vm.cc b/ircd/m/vm.cc index 5c072c2f4..f38c149c4 100644 --- a/ircd/m/vm.cc +++ b/ircd/m/vm.cc @@ -619,7 +619,9 @@ ircd::m::vm::events::for_each(const uint64_t &start, auto it { - column.lower_bound(byte_view(start)) + start > 0? + column.lower_bound(byte_view(start)): + column.begin() }; for(; it; ++it)