mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
dsp: Silence a warning in the compressor code
/* offset = -3db * (ratio - 1) / ratio */
db_curve[2].offset = (int32_t)((long long)(-3 << 16)
* (ratio - 1) / ratio);
Results in a warning: left shift of negative value [-Wshift-negative-value]
To fix this, replace the '-3' with -3UL.
(As that is effectively what is already happening)
Change-Id: I5aa269ff332703d3c2d889fa032d2fdc403ff14f
This commit is contained in:
parent
6f5760b41a
commit
303f262acb
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ static bool compressor_update(struct dsp_config *dsp,
|
|||
db_curve[2].db = db_curve[1].db + (3 << 16);
|
||||
if (ratio)
|
||||
/* offset = -3db * (ratio - 1) / ratio */
|
||||
db_curve[2].offset = (int32_t)((long long)(-3 << 16)
|
||||
db_curve[2].offset = (int32_t)((long long)(-3UL << 16)
|
||||
* (ratio - 1) / ratio);
|
||||
else
|
||||
/* offset = -3db for hard limit */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue