From 5086a39b7f566960cdcbe029a75648c1cf825789 Mon Sep 17 00:00:00 2001 From: shahoian Date: Tue, 6 May 2025 11:44:43 +0200 Subject: [PATCH] Fix typos in rANS AlignedArrayIterator --- .../include/rANS/internal/containers/AlignedArray.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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_ */