Skip to content

Commit 9993822

Browse files
jan-wassenbergcopybara-github
authored andcommitted
further GCC8 fix (cast)
PiperOrigin-RevId: 503095601
1 parent 600be41 commit 9993822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwy/tests/reduction_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct TestSumOfLanes {
3535
template <typename T, size_t N, int P,
3636
hwy::EnableIf<IsSigned<T>() && ((N & 1) == 0)>* = nullptr>
3737
HWY_NOINLINE void SignedEvenLengthVectorTests(Simd<T, N, P> d) {
38-
const T pairs = static_cast<T>(Lanes(d)) / T{2};
38+
const T pairs = static_cast<T>(Lanes(d) / 2);
3939

4040
// Lanes are the repeated sequence -2, 1, [...]; each pair sums to -1,
4141
// so the eventual total is just -(N/2).

0 commit comments

Comments
 (0)