]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build
authorMichael Jerris <mike@jerris.com>
Mon, 2 Feb 2009 16:54:17 +0000 (16:54 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 2 Feb 2009 16:54:17 +0000 (16:54 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11594 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_resample.c

index dcb2c37731a289ab081e10b65db7bfc0012713c1..29b56b826101ef359a5b56dcfd76720526e8eaef 100644 (file)
@@ -234,11 +234,11 @@ SWITCH_DECLARE(void) switch_generate_sln_silence(int16_t *data, uint32_t samples
 
        assert(divisor);
 
-       rnd2 = (int16_t) (intptr_t) &data + switch_epoch_time_now(NULL);
+       rnd2 = (int16_t) (intptr_t) (&data + switch_epoch_time_now(NULL));
 
        for (i = 0; i < samples; i++, sum_rnd = 0) {
                for (x = 0; x < 10; x++) {
-                       rnd += ((x + i) * rnd2);
+                       rnd += (int16_t)((x + i) * rnd2);
                        sum_rnd += rnd;
                }
                switch_normalize_to_16bit(sum_rnd);