[asterisk-commits] rmudgett: trunk r433818 - in /trunk: ./ channels/sip/dialplan_functions.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 31 12:04:19 CDT 2015
Author: rmudgett
Date: Tue Mar 31 12:04:18 2015
New Revision: 433818
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433818
Log:
chan_sip: Fix expression in unit test /channels/chan_sip/test_sip_rtpqos.
Fix misplaced parentheses in original fabs() expression.
........
Merged revisions 433816 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 433817 from http://svn.asterisk.org/svn/asterisk/branches/13
Modified:
trunk/ (props changed)
trunk/channels/sip/dialplan_functions.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.
Modified: trunk/channels/sip/dialplan_functions.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/dialplan_functions.c?view=diff&rev=433818&r1=433817&r2=433818
==============================================================================
--- trunk/channels/sip/dialplan_functions.c (original)
+++ trunk/channels/sip/dialplan_functions.c Tue Mar 31 12:04:18 2015
@@ -386,7 +386,7 @@
for (j = 1.0; j < 10.0; j += 0.3) {
*lookup[i].d8 = j;
ast_str_substitute_variables(&buffer, 0, chan, ast_str_buffer(varstr));
- if (sscanf(ast_str_buffer(buffer), "%lf", &cmpdbl) != 1 || abs(j - cmpdbl > .05)) {
+ if (sscanf(ast_str_buffer(buffer), "%lf", &cmpdbl) != 1 || fabs(j - cmpdbl) > .05) {
res = AST_TEST_FAIL;
ast_test_status_update(test, "%s != %f != %s\n", ast_str_buffer(varstr), j, ast_str_buffer(buffer));
break;
More information about the asterisk-commits
mailing list