<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/7815">View Change</a></p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/7815/1/main/translate.c">File main/translate.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7815/1/main/translate.c@1418">Patch Set #1, Line 1418:</a> <code style="font-family:monospace,monospace">                            unsigned int gap_selected_dst = ast_format_get_sample_rate(bestdst);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I agree the change is needed but I think the fix should be implemented in a macro (probably in asterisk/utils.h).</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Potential macro implementation:<br>#define ast_unsigned_diff(a, b) ({ \<br>  typeof(a) __a = a; \<br>  typeof(b) __b = b; \<br>  (__a > __b ? __a - __b : __b - __a); \<br>})</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Then this file could be fixed without making the code harder to read.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/7815">change 7815</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/7815"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ib904d9ee0d46b6fdd1476fbc464fbbf813304017 </div>
<div style="display:none"> Gerrit-Change-Number: 7815 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 05 Jan 2018 19:36:25 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>