<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">What happens if you replace the tolower() in ast_str_to_lower with<br>your simple test for >= 'A' and <= 'Z'?  Does it still fail when<br>all the conditions are met?  I.E.  Is the issue inside tolower()?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Using tolower() instead of >='A' && <='Z' will also work. But I chose not  to use it to be on the safe side in case the original coder applied ast_str_to_lower() for a good reason (portability?, speed?)<br>The bug is not in the tolower() function itself, it is caused by the arithmetic calculations breaking up inside the inline function. It can't even add 2+2.</p><p><a href="https://gerrit.asterisk.org/10891">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10891">change 10891</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/10891"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ied32e0071f12ed9d5f3b4cdd878b2532a1c769d7 </div>
<div style="display:none"> Gerrit-Change-Number: 10891 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Chris Savinovich <csavinovich@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Chris Savinovich <csavinovich@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 21 Jan 2019 14:37:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>