From 5f71e8735afbaad55f64b4b4270c6d9a0c139385 Mon Sep 17 00:00:00 2001 From: Bill Avery Date: Wed, 14 Jun 2023 21:59:45 -0600 Subject: [PATCH] Fix #1227 --- include/cxx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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