Skip to content

Commit

Permalink
fix violations of warning sign-compare
Browse files Browse the repository at this point in the history
Reviewed By: Orvid

Differential Revision: D67122185

fbshipit-source-id: 147bbde68429641e87f6088436778c03cccf1791
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Dec 12, 2024
1 parent 78ba579 commit a30e19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third-party/folly/src/folly/container/detail/F14Table.h
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ struct alignas(kRequiredVectorAlignment) F14Chunk {
auto tagV = static_cast<uint8_t const*>(&tags_[0]);
MaskType mask = 0;
FOLLY_PRAGMA_UNROLL_N(16)
for (int i = 0; i < kCapacity; i++) {
for (auto i = 0u; i < kCapacity; i++) {
mask |= ((tagV[i] == static_cast<uint8_t>(needle)) ? 1 : 0) << i;
}
return SparseMaskIter{mask & kFullMask};
Expand All @@ -717,7 +717,7 @@ struct alignas(kRequiredVectorAlignment) F14Chunk {
auto tagV = static_cast<uint8_t const*>(&tags_[0]);
MaskType mask = 0;
FOLLY_PRAGMA_UNROLL_N(16)
for (int i = 0; i < kCapacity; i++) {
for (auto i = 0u; i < kCapacity; i++) {
mask |= ((tagV[i] & 0x80) ? 1 : 0) << i;
}
return mask & kFullMask;
Expand Down

0 comments on commit a30e19f

Please sign in to comment.