File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
contrib/restricted/abseil-cpp-tstring/y_absl/container/internal Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -436,10 +436,11 @@ struct common_params : common_policy_traits<SlotPolicy> {
436
436
437
437
// This is an integral type large enough to hold as many slots as will fit a
438
438
// node of TargetNodeSize bytes.
439
+ static constexpr bool fit_cond =
440
+ kNodeSlotSpace / sizeof (slot_type) >
441
+ std::numeric_limits<uint8_t >::max();
439
442
using node_count_type =
440
- y_absl::conditional_t <(kNodeSlotSpace / sizeof (slot_type) >
441
- (std::numeric_limits<uint8_t >::max)()),
442
- uint16_t , uint8_t >; // NOLINT
443
+ y_absl::conditional_t <fit_cond, uint16_t , uint8_t >; // NOLINT
443
444
};
444
445
445
446
// An adapter class that converts a lower-bound compare into an upper-bound
You can’t perform that action at this time.
0 commit comments