diff options
Diffstat (limited to 'absl')
-rw-r--r-- | absl/hash/internal/hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h index ef3f3664..300c63af 100644 --- a/absl/hash/internal/hash.h +++ b/absl/hash/internal/hash.h @@ -818,7 +818,7 @@ AbslHashValue(H hash_state, const absl::variant<T...>& v) { template <typename H, size_t N> H AbslHashValue(H hash_state, const std::bitset<N>& set) { typename H::AbslInternalPiecewiseCombiner combiner; - for (int i = 0; i < N; i++) { + for (size_t i = 0; i < N; i++) { unsigned char c = static_cast<unsigned char>(set[i]); hash_state = combiner.add_buffer(std::move(hash_state), &c, sizeof(c)); } |