Skip to content

Commit

Permalink
Fix #1227
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed Jun 15, 2023
1 parent 76e8a2f commit 5f71e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ typename Slice<T>::iterator::difference_type
Slice<T>::iterator::operator-(const iterator &other) const noexcept {
auto diff = std::distance(static_cast<char *>(other.pos),
static_cast<char *>(this->pos));
return diff / this->stride;
return diff / static_cast<typename Slice<T>::iterator::difference_type>(this->stride);
}

template <typename T>
Expand Down

0 comments on commit 5f71e87

Please sign in to comment.