Skip to content

Commit 5c25f5d

Browse files
committed
Fix -Wsign-compare compiler warnings
1 parent cc4debd commit 5c25f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/VecCore/Backend/SIMD.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ using SIMDVector = SIMD<std::experimental::simd_abi::fixed_size<N>>;
7373

7474
template <typename T, class Abi>
7575
bool MaskEmpty(std::experimental::simd_mask<T, Abi> mask) {
76-
for (int i = 0; i < mask.size(); ++i)
76+
for (size_t i = 0; i < mask.size(); ++i)
7777
if (mask[i])
7878
return false;
7979
return true;
8080
}
8181

8282
template <typename T, class Abi>
8383
bool MaskFull(std::experimental::simd_mask<T, Abi> mask) {
84-
for (int i = 0; i < mask.size(); ++i)
84+
for (size_t i = 0; i < mask.size(); ++i)
8585
if (!mask[i])
8686
return false;
8787
return true;

0 commit comments

Comments
 (0)