Fix FreeBSD compile (bug #1620)
authorMark Spencer <markster@digium.com>
Wed, 12 May 2004 19:20:34 +0000 (19:20 +0000)
committerMark Spencer <markster@digium.com>
Wed, 12 May 2004 19:20:34 +0000 (19:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2952 65c4cc65-6c06-0410-ace0-fbb531ad65f3

say.c

diff --git a/say.c b/say.c
index c4cce4c..10318b0 100755 (executable)
--- a/say.c
+++ b/say.c
@@ -765,8 +765,8 @@ static int ast_say_number_full_de(struct ast_channel *chan, int num, char *ints,
                        snprintf(fn, sizeof(fn), "digits/thousand");
                        num = 0;
                } else  if (num < 1000000) {
-                       t = 1;
                        int thousands = num / 1000;
+                       t = 1;
                        if (thousands == 1) {
                                snprintf(fn, sizeof(fn), "digits/1N");
                                snprintf(fna, sizeof(fna), "digits/thousand");
@@ -778,8 +778,8 @@ static int ast_say_number_full_de(struct ast_channel *chan, int num, char *ints,
                        }
                        num = num % 1000;
                } else if (num < 1000000000) {
-                       t = 1;
                        int millions = num / 1000000;
+                       t = 1;
                        if (millions == 1) {
                                snprintf(fn, sizeof(fn), "digits/1N");
                                snprintf(fna, sizeof(fna), "digits/million");