diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-13 21:07:01 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-13 21:07:01 +0400 |
commit | a71c9adf526685024baa46a1e6266264a1aeb866 (patch) | |
tree | 21d896525fa43ffc9bd2b1becc43dd97d5e1460c /src/opus_multistream_encoder.c | |
parent | 8848171b2fd695ae1db362286db40b5588005c37 (diff) |
Fixes MSVC conversion warnings
Diffstat (limited to 'src/opus_multistream_encoder.c')
-rw-r--r-- | src/opus_multistream_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c index b6c5db96..d062d7ad 100644 --- a/src/opus_multistream_encoder.c +++ b/src/opus_multistream_encoder.c @@ -205,7 +205,7 @@ static opus_val16 logSum(opus_val16 a, opus_val16 b) low = SHR32(diff, DB_SHIFT-1); frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); #else - low = floor(2*diff); + low = (int)floor(2*diff); frac = 2*diff - low; #endif return max + diff_table[low] + MULT16_16_Q15(frac, SUB16(diff_table[low+1], diff_table[low])); |