Skip to content

Commit adae4e9

Browse files
committed
[libcxx] <experimental/simd> Fix CI errors on 32-bits x86
Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D159509
1 parent 461f859 commit adae4e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/experimental/__simd/vec_ext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ struct __simd_storage<_Tp, simd_abi::__vec_ext<_Np>> {
3131
_Tp __data __attribute__((__vector_size__(std::__bit_ceil((sizeof(_Tp) * _Np)))));
3232

3333
_Tp __get(size_t __idx) const noexcept {
34-
_LIBCPP_ASSERT_UNCATEGORIZED(__idx > 0 && __idx <= _Np, "Index is out of bounds");
34+
_LIBCPP_ASSERT_UNCATEGORIZED(__idx >= 0 && __idx < _Np, "Index is out of bounds");
3535
return __data[__idx];
3636
}
3737
void __set(size_t __idx, _Tp __v) noexcept {
38-
_LIBCPP_ASSERT_UNCATEGORIZED(__idx > 0 && __idx <= _Np, "Index is out of bounds");
38+
_LIBCPP_ASSERT_UNCATEGORIZED(__idx >= 0 && __idx < _Np, "Index is out of bounds");
3939
__data[__idx] = __v;
4040
}
4141
};

0 commit comments

Comments
 (0)