diff --git a/Utilities/rANS/include/rANS/internal/containers/AlignedArray.h b/Utilities/rANS/include/rANS/internal/containers/AlignedArray.h index df4b0190cdc4f..c1f96df939809 100644 --- a/Utilities/rANS/include/rANS/internal/containers/AlignedArray.h +++ b/Utilities/rANS/include/rANS/internal/containers/AlignedArray.h @@ -107,16 +107,16 @@ class AlignedArrayIterator inline constexpr difference_type operator-(const AlignedArrayIterator& other) const noexcept { - return this->mIter - other.mIter; + return this->mIndex - other.mIndex; }; // comparison inline constexpr bool operator==(const AlignedArrayIterator& other) const noexcept { return this->mIndex == other.mIndex; }; inline constexpr bool operator!=(const AlignedArrayIterator& other) const noexcept { return this->mIndex != other.mIndex; }; - inline constexpr bool operator<(const AlignedArrayIterator& other) const noexcept { return this->mIndex < other->mIndex; }; - inline constexpr bool operator>(const AlignedArrayIterator& other) const noexcept { return this->mIndex > other->mIndex; }; - inline constexpr bool operator>=(const AlignedArrayIterator& other) const noexcept { return this->mIndex >= other->mIndex; }; - inline constexpr bool operator<=(const AlignedArrayIterator& other) const noexcept { return this->mIndex <= other->mIndex; }; + inline constexpr bool operator<(const AlignedArrayIterator& other) const noexcept { return this->mIndex < other.mIndex; }; + inline constexpr bool operator>(const AlignedArrayIterator& other) const noexcept { return this->mIndex > other.mIndex; }; + inline constexpr bool operator>=(const AlignedArrayIterator& other) const noexcept { return this->mIndex >= other.mIndex; }; + inline constexpr bool operator<=(const AlignedArrayIterator& other) const noexcept { return this->mIndex <= other.mIndex; }; // dereference inline constexpr value_type operator*() const noexcept { return (*mContainer)[mIndex]; }; @@ -311,4 +311,4 @@ auto make_span(o2::rans::internal::simd::AlignedArray& array } // namespace gsl -#endif /* RANS_INTERNAL_CONTAINERS_ALIGNEDARRAY_H_ */ \ No newline at end of file +#endif /* RANS_INTERNAL_CONTAINERS_ALIGNEDARRAY_H_ */