<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/18547">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">asttest: Be explicit about the signedness of chars.<br><br>On arm64, chars are unsigned by default - as opposed to x86 where they<br>are signed by default. This causes problems when trying to compare<br>chars with negative numbers so be explicit where it matters.<br><br>Change-Id: I3f85d9252ae39227d82d5efaf6e6874cdfa71138<br>---<br>M asttest/asttest.c<br>M asttest/tools/mkstring.c<br>2 files changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/asttest/asttest.c b/asttest/asttest.c</span><br><span>index 4375fa6..152d84a 100644</span><br><span>--- a/asttest/asttest.c</span><br><span>+++ b/asttest/asttest.c</span><br><span>@@ -73,7 +73,7 @@</span><br><span>  * @return 0 success</span><br><span>  */</span><br><span> int parse_cmdline(int argc, char *argv[], struct asttest_opts *opts) {</span><br><span style="color: hsl(0, 100%, 40%);">-  char c;</span><br><span style="color: hsl(120, 100%, 40%);">+       signed char c;</span><br><span>       memset(opts, 0, sizeof(struct asttest_opts));</span><br><span> </span><br><span>    /* set some default options */</span><br><span>diff --git a/asttest/tools/mkstring.c b/asttest/tools/mkstring.c</span><br><span>index 670477b..27774e0 100644</span><br><span>--- a/asttest/tools/mkstring.c</span><br><span>+++ b/asttest/tools/mkstring.c</span><br><span>@@ -66,7 +66,7 @@</span><br><span> }</span><br><span> </span><br><span> int parse_cmdline(int argc, char *argv[], struct mkstring_options *opts) {</span><br><span style="color: hsl(0, 100%, 40%);">-  char c;</span><br><span style="color: hsl(120, 100%, 40%);">+       signed char c;</span><br><span>       int i;</span><br><span>       while ((c = getopt(argc, argv, "n:o:")) != -1) {</span><br><span>           switch (c) {</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/18547">change 18547</a>. To unsubscribe, or for help writing mail filters, 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/c/testsuite/+/18547"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3f85d9252ae39227d82d5efaf6e6874cdfa71138 </div>
<div style="display:none"> Gerrit-Change-Number: 18547 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>