diff --git a/include/cxx.h b/include/cxx.h index 907ee829f..5d3b694ca 100644 --- a/include/cxx.h +++ b/include/cxx.h @@ -659,7 +659,7 @@ typename Slice::iterator::difference_type Slice::iterator::operator-(const iterator &other) const noexcept { auto diff = std::distance(static_cast(other.pos), static_cast(this->pos)); - return diff / this->stride; + return diff / static_cast::iterator::difference_type>(this->stride); } template