diff --git a/include/psi/vm/containers/b+tree.hpp b/include/psi/vm/containers/b+tree.hpp index a6dc49f..b5d32c3 100644 --- a/include/psi/vm/containers/b+tree.hpp +++ b/include/psi/vm/containers/b+tree.hpp @@ -390,6 +390,7 @@ class bptree_base::base_random_access_iterator : public base_iterator public: constexpr base_random_access_iterator() noexcept = default; + [[ clang::no_sanitize( "unsigned-integer-overflow" ) ]] difference_type operator-( base_random_access_iterator const & other ) const noexcept { return static_cast( this->index_ - other.index_ ); } base_random_access_iterator & operator+=( difference_type n ) noexcept; diff --git a/src/containers/b+tree.cpp b/src/containers/b+tree.cpp index 0db01fe..7d766a9 100644 --- a/src/containers/b+tree.cpp +++ b/src/containers/b+tree.cpp @@ -172,6 +172,7 @@ bptree_base::base_iterator::operator++() noexcept } return *this; } +[[ clang::no_sanitize( "implicit-conversion" ) ]] bptree_base::base_iterator & bptree_base::base_iterator::operator--() noexcept {