[asterisk-commits] rmudgett: branch 13 r433817 - in /branches/13: ./ channels/sip/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 31 11:55:51 CDT 2015


Author: rmudgett
Date: Tue Mar 31 11:55:49 2015
New Revision: 433817

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433817
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

Modified:
    branches/13/   (props changed)
    branches/13/channels/sip/dialplan_functions.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/13/channels/sip/dialplan_functions.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/sip/dialplan_functions.c?view=diff&rev=433817&r1=433816&r2=433817
==============================================================================
--- branches/13/channels/sip/dialplan_functions.c (original)
+++ branches/13/channels/sip/dialplan_functions.c Tue Mar 31 11:55:49 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