fix subtraction error
authorRussell Bryant <russell@russellbryant.com>
Sun, 14 Nov 2004 00:24:35 +0000 (00:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 14 Nov 2004 00:24:35 +0000 (00:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4237 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_math.c

index 7ea7c22..8637d52 100755 (executable)
@@ -178,7 +178,7 @@ static int math_exec(struct ast_channel *chan, void *data)
                ftmp = (fnum1 * fnum2);
                break;
        case SUBTRACTFUNCTION :
-               ftmp = (fnum2 - fnum1);
+               ftmp = (fnum1 - fnum2);
                break;
        case MODULUSFUNCTION : {
                int inum1 = fnum1;