<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17106">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">encoding: assert return value of bitvec_set_u64()<br><br>Change-Id: Ic0de3ae34f06e41aacacb917f5a0214623259bdc<br>Fixes: OS#182120<br>---<br>M src/encoding.cpp<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/06/17106/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/encoding.cpp b/src/encoding.cpp</span><br><span>index 23b35bd..a4a14dd 100644</span><br><span>--- a/src/encoding.cpp</span><br><span>+++ b/src/encoding.cpp</span><br><span>@@ -162,7 +162,8 @@</span><br><span> {</span><br><span>      dest->cur_bit = *write_index;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-    bitvec_set_u64(dest, enc_ws(ws), 5, false);</span><br><span style="color: hsl(120, 100%, 40%);">+   int rc = bitvec_set_u64(dest, enc_ws(ws), 5, false);</span><br><span style="color: hsl(120, 100%, 40%);">+  OSMO_ASSERT(rc == 0);</span><br><span> </span><br><span>    *write_index += 5;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17106">change 17106</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-pcu/+/17106"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic0de3ae34f06e41aacacb917f5a0214623259bdc </div>
<div style="display:none"> Gerrit-Change-Number: 17106 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>