Commit d280a467 authored by smorlat's avatar smorlat
Browse files

fix cast bug.

git-svn-id: svn+ssh:// 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 160bde1d
......@@ -93,7 +93,7 @@ static float gain_float(ms_word16_t val){
static ms_word16_t gain_int16(float val){
ms_word16_t ret=(val*GAIN_ZERODB);
ms_word32_t ret=(val*GAIN_ZERODB);
if (ret>=32767) ret=32767;
return (ms_word16_t)ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment