<p>Hoernchen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/14906">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ubsan: fiy shift<br><br>Ubsan complains about shifts into the sign bit due to automatic int<br>promotion, so cast explicitly.<br><br>Change-Id: I6387c7313832f6c7c920e1016b74562b66d6b68e<br>Related: OS#4029<br>---<br>M src/bts.cpp<br>1 file changed, 1 insertion(+), 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/14906/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/bts.cpp b/src/bts.cpp</span><br><span>index 395fc73..26dd401 100644</span><br><span>--- a/src/bts.cpp</span><br><span>+++ b/src/bts.cpp</span><br><span>@@ -551,7 +551,7 @@</span><br><span>     }</span><br><span> </span><br><span>        /* get TLLI from downlink assignment */</span><br><span style="color: hsl(0, 100%, 40%);">- tlli = ((*data++) & 0xf) << 28;</span><br><span style="color: hsl(120, 100%, 40%);">+     tlli = (uint32_t)((*data++) & 0xf) << 28;</span><br><span>  tlli |= (*data++) << 20;</span><br><span>       tlli |= (*data++) << 12;</span><br><span>       tlli |= (*data++) << 4;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/14906">change 14906</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/+/14906"/><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: I6387c7313832f6c7c920e1016b74562b66d6b68e </div>
<div style="display:none"> Gerrit-Change-Number: 14906 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>