Skip to content

Commit

Permalink
Fix -Wsign-compare compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Nov 20, 2024
1 parent cc4debd commit 5c25f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/VecCore/Backend/SIMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ using SIMDVector = SIMD<std::experimental::simd_abi::fixed_size<N>>;

template <typename T, class Abi>
bool MaskEmpty(std::experimental::simd_mask<T, Abi> mask) {
for (int i = 0; i < mask.size(); ++i)
for (size_t i = 0; i < mask.size(); ++i)
if (mask[i])
return false;
return true;
}

template <typename T, class Abi>
bool MaskFull(std::experimental::simd_mask<T, Abi> mask) {
for (int i = 0; i < mask.size(); ++i)
for (size_t i = 0; i < mask.size(); ++i)
if (!mask[i])
return false;
return true;
Expand Down

0 comments on commit 5c25f5d

Please sign in to comment.