diff options
author | Abseil Team <absl-team@google.com> | 2022-03-17 13:01:57 -0700 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2022-03-18 12:24:31 -0400 |
commit | c33f21f86a14216336b87d48e9b552a13985b2bc (patch) | |
tree | e46efd727095ad55a6d8824e5cb0ad855f37dbf6 /absl/container | |
parent | 9f5b2c782ad50df4692bc66f1687e1f4d43c7308 (diff) |
Export of internal Abseil changes
--
199bdbf9ad253b216ed6c6386bf69bc706330204 by Abseil Team <absl-team@google.com>:
Import of CCTZ from GitHub.
PiperOrigin-RevId: 435425408
Change-Id: I502d21ca5771d14e24fe41b28dc562ea6274996d
--
245a761e96f53857cef9c2359eac9d4bbcfdfd47 by Abseil Team <absl-team@google.com>:
Fix a -Wsign-compare -Wconversion problem in absl::btree discovered while getting cachelib to compile with those flags enabled.
PiperOrigin-RevId: 435419108
Change-Id: I0a9fa53d0163f678dde8960410315a5bc8445c72
GitOrigin-RevId: 199bdbf9ad253b216ed6c6386bf69bc706330204
Diffstat (limited to 'absl/container')
-rw-r--r-- | absl/container/internal/btree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/container/internal/btree.h b/absl/container/internal/btree.h index a22c9bd7..da2abcb9 100644 --- a/absl/container/internal/btree.h +++ b/absl/container/internal/btree.h @@ -631,7 +631,8 @@ class btree_node { // Compute how many values we can fit onto a leaf node taking into account // padding. - constexpr static size_type NodeTargetSlots(const int begin, const int end) { + constexpr static size_type NodeTargetSlots(const size_type begin, + const size_type end) { return begin == end ? begin : SizeWithNSlots((begin + end) / 2 + 1) > params_type::kTargetNodeSize |