diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2020-02-09 03:59:52 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2020-02-10 14:52:33 +0700 |
commit | 9a530a243095be5f3b015072b754f81f13bb23ca (patch) | |
tree | c507eef9b5219a04e23b12196eb733c2b4a66a68 | |
parent | 9cbfe11ee20aea5d6942721cd12dba3d9e2621c6 (diff) |
encoding: assert return value of bitvec_set_u64()
Change-Id: Ic0de3ae34f06e41aacacb917f5a0214623259bdc
Fixes: OS#182120
-rw-r--r-- | src/encoding.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp index 23b35bd1..a4a14dd8 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -162,7 +162,8 @@ static inline void write_ws(bitvec *dest, unsigned int *write_index, uint16_t ws { dest->cur_bit = *write_index; - bitvec_set_u64(dest, enc_ws(ws), 5, false); + int rc = bitvec_set_u64(dest, enc_ws(ws), 5, false); + OSMO_ASSERT(rc == 0); *write_index += 5; } |