From 3cd120a02e28225cc89f6898a317fd4f93b0c138 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sun, 20 Feb 2011 14:50:20 -0600 Subject: [PATCH] fix warning --- src/switch_resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_resample.c b/src/switch_resample.c index 64656b6c61..949b351785 100644 --- a/src/switch_resample.c +++ b/src/switch_resample.c @@ -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; }