bugfix - printf formatting incorrect in bounded_bitset method

master
Francisco 4 years ago committed by Ismael Gomez
parent 41bc7e4810
commit 31936c9754

@ -366,7 +366,8 @@ public:
void from_uint64(uint64_t v) void from_uint64(uint64_t v)
{ {
srsran_assert(nof_words_() == 1, "ERROR: cannot convert bitset of size=%zd to uint64_t", size()); 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; buffer[0] = v;
} }

Loading…
Cancel
Save