bugfix - printf formatting incorrect in bounded_bitset method

This commit is contained in:
Francisco 2021-05-21 10:40:59 +01:00 committed by Ismael Gomez
parent 41bc7e4810
commit 31936c9754
1 changed files with 2 additions and 1 deletions

View File

@ -366,7 +366,8 @@ public:
void from_uint64(uint64_t v)
{
srsran_assert(nof_words_() == 1, "ERROR: cannot convert bitset of size=%zd to uint64_t", size());
srsran_assert(v < (1U << size()), "ERROR: Provided uint64=%ld does not fit in bitset of size=%zd", v, size());
srsran_assert(
v < (1U << size()), "ERROR: Provided mask=0x%" PRIx64 " does not fit in bitset of size=%zd", v, size());
buffer[0] = v;
}