We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461f859 commit adae4e9Copy full SHA for adae4e9
libcxx/include/experimental/__simd/vec_ext.h
@@ -31,11 +31,11 @@ struct __simd_storage<_Tp, simd_abi::__vec_ext<_Np>> {
31
_Tp __data __attribute__((__vector_size__(std::__bit_ceil((sizeof(_Tp) * _Np)))));
32
33
_Tp __get(size_t __idx) const noexcept {
34
- _LIBCPP_ASSERT_UNCATEGORIZED(__idx > 0 && __idx <= _Np, "Index is out of bounds");
+ _LIBCPP_ASSERT_UNCATEGORIZED(__idx >= 0 && __idx < _Np, "Index is out of bounds");
35
return __data[__idx];
36
}
37
void __set(size_t __idx, _Tp __v) noexcept {
38
39
__data[__idx] = __v;
40
41
};
0 commit comments