]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix warning
authorJeff Lenk <jeff@jefflenk.com>
Sun, 20 Feb 2011 20:50:20 +0000 (14:50 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Sun, 20 Feb 2011 20:50:20 +0000 (14:50 -0600)
src/switch_resample.c

index 64656b6c617499c6a9b477a09b2ae58544ccc1ae..949b3517854cd512a906ac8cbf0765461fc92a51 100644 (file)
@@ -299,7 +299,7 @@ SWITCH_DECLARE(void) switch_change_sln_volume_granular(int16_t *data, uint32_t s
                int16_t *fp = data;
 
                for (x = 0; x < samples; x++) {
-                       tmp = (int32_t) fp[x] * newrate;
+                       tmp = (int32_t) (fp[x] * newrate);
                        switch_normalize_to_16bit(tmp);
                        fp[x] = (int16_t) tmp;
                }