Skip to content

Commit 59d56c9

Browse files
committed
fix
1 parent a78412a commit 59d56c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cp-algo/linalg/vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ namespace cp_algo::linalg {
119119
size_t n = size(*this);
120120
u64x4 scaler = u64x4() + scale.getr();
121121
if (is_aligned(&(*this)[0]) && is_aligned(&b[0])) // verify we're not in SSO
122-
for(i -= i % 4; i < n; i += 4) {
122+
for(i -= i % 4; i + 3 < n; i += 4) {
123123
auto &ai = vector_cast<u64x4>((*this)[i]);
124124
auto bi = vector_cast<u64x4 const>(b[i]);
125125
#ifdef __AVX2__

0 commit comments

Comments
 (0)