summaryrefslogtreecommitdiff
path: root/absl/strings/cord_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/strings/cord_buffer.h')
-rw-r--r--absl/strings/cord_buffer.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/absl/strings/cord_buffer.h b/absl/strings/cord_buffer.h
index 15494b31..09a74ad5 100644
--- a/absl/strings/cord_buffer.h
+++ b/absl/strings/cord_buffer.h
@@ -411,12 +411,8 @@ class CordBuffer {
// Power2 functions
static bool IsPow2(size_t size) { return absl::has_single_bit(size); }
- static size_t Log2Floor(size_t size) {
- return static_cast<size_t>(absl::bit_width(size) - 1);
- }
- static size_t Log2Ceil(size_t size) {
- return static_cast<size_t>(absl::bit_width(size - 1));
- }
+ static size_t Log2Floor(size_t size) { return absl::bit_width(size) - 1; }
+ static size_t Log2Ceil(size_t size) { return absl::bit_width(size - 1); }
// Implementation of `CreateWithCustomLimit()`.
// This implementation allows for future memory allocation hints to