Fix unsafe float comparison.
Switching == to >= should be safe here since the next if is the opposite. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
b18074f899
commit
a5273d6992
@ -62,7 +62,7 @@ mixramp_interpolate(const char *ramp_list, float required_db) noexcept
|
|||||||
++ramp_list;
|
++ramp_list;
|
||||||
|
|
||||||
/* Check for exact match. */
|
/* Check for exact match. */
|
||||||
if (db == required_db) {
|
if (db >= required_db) {
|
||||||
return duration;
|
return duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user