Skip to content

Commit ec067b0

Browse files
jan-wassenbergcopybara-github
authored andcommitted
pre-release fix: sign mismatch
PiperOrigin-RevId: 779093465
1 parent f2ff5ad commit ec067b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hwy/ops/x86_128-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7171,8 +7171,8 @@ HWY_API Vec128<T, N> TableLookupLanes(Vec128<T, N> v, Indices128<T, N> idx) {
71717171
Store(v_full, d_full, src_lanes);
71727172
Store(vidx, di_full, indices);
71737173

7174-
for (int i = 0; i < N; i++) {
7175-
result_lanes[i] = src_lanes[indices[i] & 3u];
7174+
for (size_t i = 0; i < N; i++) {
7175+
result_lanes[i] = src_lanes[static_cast<size_t>(indices[i] & 3)];
71767176
}
71777177
return Load(d, result_lanes);
71787178
#endif // HWY_COMPILER_GCC_ACTUAL && HWY_HAS_BUILTIN(__builtin_shuffle)

run_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ cmake .. -DHWY_WARNINGS_ARE_ERRORS:BOOL=ON -DCMAKE_BUILD_TYPE=Release
1414
make -j && ctest -j && cd .. && rm -rf build
1515

1616
#######################################
17-
echo DEBUG Clang 13
17+
echo DEBUG Clang 15
1818
rm -rf build_dbg && mkdir build_dbg && cd build_dbg
19-
CXX=clang++-13 CC=clang-13 cmake .. -DHWY_WARNINGS_ARE_ERRORS:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
19+
CXX=clang++-15 CC=clang-15 cmake .. -DHWY_WARNINGS_ARE_ERRORS:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
2020
make -j && ctest -j && cd .. && rm -rf build_dbg
2121

2222
#######################################

0 commit comments

Comments
 (0)