Skip to content

Commit 5086a39

Browse files
committed
Fix typos in rANS AlignedArrayIterator
1 parent 15b4f5f commit 5086a39

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Utilities/rANS/include/rANS/internal/containers/AlignedArray.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ class AlignedArrayIterator
107107

108108
inline constexpr difference_type operator-(const AlignedArrayIterator& other) const noexcept
109109
{
110-
return this->mIter - other.mIter;
110+
return this->mIndex - other.mIndex;
111111
};
112112

113113
// comparison
114114
inline constexpr bool operator==(const AlignedArrayIterator& other) const noexcept { return this->mIndex == other.mIndex; };
115115
inline constexpr bool operator!=(const AlignedArrayIterator& other) const noexcept { return this->mIndex != other.mIndex; };
116-
inline constexpr bool operator<(const AlignedArrayIterator& other) const noexcept { return this->mIndex < other->mIndex; };
117-
inline constexpr bool operator>(const AlignedArrayIterator& other) const noexcept { return this->mIndex > other->mIndex; };
118-
inline constexpr bool operator>=(const AlignedArrayIterator& other) const noexcept { return this->mIndex >= other->mIndex; };
119-
inline constexpr bool operator<=(const AlignedArrayIterator& other) const noexcept { return this->mIndex <= other->mIndex; };
116+
inline constexpr bool operator<(const AlignedArrayIterator& other) const noexcept { return this->mIndex < other.mIndex; };
117+
inline constexpr bool operator>(const AlignedArrayIterator& other) const noexcept { return this->mIndex > other.mIndex; };
118+
inline constexpr bool operator>=(const AlignedArrayIterator& other) const noexcept { return this->mIndex >= other.mIndex; };
119+
inline constexpr bool operator<=(const AlignedArrayIterator& other) const noexcept { return this->mIndex <= other.mIndex; };
120120

121121
// dereference
122122
inline constexpr value_type operator*() const noexcept { return (*mContainer)[mIndex]; };
@@ -311,4 +311,4 @@ auto make_span(o2::rans::internal::simd::AlignedArray<T, width_V, size_V>& array
311311

312312
} // namespace gsl
313313

314-
#endif /* RANS_INTERNAL_CONTAINERS_ALIGNEDARRAY_H_ */
314+
#endif /* RANS_INTERNAL_CONTAINERS_ALIGNEDARRAY_H_ */

0 commit comments

Comments
 (0)