Skip to content

Commit 6485bce

Browse files
xavierarteagacodebot
authored andcommitted
phy: fix bit/byte vector size
1 parent 9cd59ab commit 6485bce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/phy/upper/upper_phy_rx_symbol_handler_impl.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ class rx_payload_buffer_pool
3434
/// Returns the next available buffer from the pool.
3535
span<uint8_t> acquire_payload_buffer(units::bytes size)
3636
{
37-
srsran_assert(size.to_bits().value() <= pool[index].size(),
38-
"Buffer size (i.e., {}) exceeds maximum {}.",
39-
size,
40-
pool[index].size());
37+
srsran_assert(
38+
size.value() <= pool[index].size(), "Buffer size (i.e., {}) exceeds maximum {}.", size, pool[index].size());
4139
unsigned i = index++ % MAX_NUM_PAYLOAD;
4240
return span<uint8_t>(pool[i]).first(size.value());
4341
}

0 commit comments

Comments
 (0)