summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-07-25 17:19:54 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-07-25 17:20:35 -0700
commit63c9eeca0464c08ccb861b21e33e10faead414c9 (patch)
tree3cb820b2aa95cf8440a3bf4737df6b041601c164 /absl
parentd0e7a8ab3af01630aebe6d10cab55a878b6cf460 (diff)
Fixed sign-conversion warning in code.
PiperOrigin-RevId: 463214218 Change-Id: I54a37fd9560b480f9eaf0454670eacf875015fe8
Diffstat (limited to 'absl')
-rw-r--r--absl/container/internal/raw_hash_set.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index ea912f83..8f00f097 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -693,7 +693,8 @@ struct GroupPortableImpl {
// ctrl | ~(ctrl >> 7) will have the lowest bit set to zero for kEmpty and
// kDeleted. We lower all other bits and count number of trailing zeros.
constexpr uint64_t bits = 0x0101010101010101ULL;
- return countr_zero((ctrl | ~(ctrl >> 7)) & bits) >> 3;
+ return static_cast<uint32_t>(countr_zero((ctrl | ~(ctrl >> 7)) & bits) >>
+ 3);
}
void ConvertSpecialToEmptyAndFullToDeleted(ctrl_t* dst) const {