From 01b507a406c8997e4f852a14fce98b6cbbc059fa Mon Sep 17 00:00:00 2001 From: "pbos@webrtc.org" Date: Thu, 21 Mar 2013 11:28:42 +0000 Subject: [PATCH] WebRtc_Word -> stdint in audio_coding/cng/ BUG= Review URL: https://webrtc-codereview.appspot.com/1222004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3697 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_coding/codecs/cng/cng_helpfuns.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webrtc/modules/audio_coding/codecs/cng/cng_helpfuns.c b/webrtc/modules/audio_coding/codecs/cng/cng_helpfuns.c index ba35850164..ab43aef8ac 100644 --- a/webrtc/modules/audio_coding/codecs/cng/cng_helpfuns.c +++ b/webrtc/modules/audio_coding/codecs/cng/cng_helpfuns.c @@ -36,9 +36,7 @@ void WebRtcCng_K2a16(int16_t* k, int useOrder, int16_t* a) { any[m + 1] = (*kptr + 4) >> 3; for (i = 0; i < m; i++) { *anyptr++ = (*aptr++) + - (WebRtc_Word16)( - (((WebRtc_Word32)(*aptr2--) * (WebRtc_Word32) * kptr) + 16384) - >> 15); + (int16_t)((((int32_t)(*aptr2--) * (int32_t) * kptr) + 16384) >> 15); } aptr = a;