<p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/26158">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/26158/1/src/tbf.cpp">File src/tbf.cpp:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/26158/1/src/tbf.cpp@737">Patch Set #1, Line 737:</a> <code style="font-family:monospace,monospace">   int8_t tfi = tbf_tfi(tbf) == TBF_TS_UNSET ? -1 : tbf_tfi(tbf);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">i'd prefer aggressive bracing in compounded statements like this.<br>more often than not, these do unexpected stuff because of omitted braces.<br>at least for (y == z), to make sure it isn't interpreted as</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  x = (y == (z ? 1 : 2))</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Bugs like this are quite hard to find, seen it happen.</p><p style="white-space: pre-wrap; word-wrap: break-word;">or even</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> x = ((y == z) ? 1 : 2)</pre><p style="white-space: pre-wrap; word-wrap: break-word;">(also makes it easier to read IMHO.)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/26158">change 26158</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/+/26158"/><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: I73a197795a9c8e9cd8dc06bf46ddb8f275d2c289 </div>
<div style="display:none"> Gerrit-Change-Number: 26158 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 08 Nov 2021 15:31:22 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>