Merge branch 'master' of github.com:jthornber/thin-provisioning-tools

This commit is contained in:
Joe Thornber 2018-11-09 11:18:27 +00:00
commit 5a309dd3bd

View File

@ -64,13 +64,13 @@ namespace base {
typename rset::const_iterator it = runs_.lower_bound(run<T>(v));
if (it->begin_ == v)
if (it != runs_.end() && it->begin_ == v)
return true;
it--;
if (it != runs_.end())
if (it != runs_.begin()) {
it--;
return it->contains(v);
}
return false;
}