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:
Rosen Penev 2020-04-08 18:20:19 -07:00 committed by Max Kellermann
parent b18074f899
commit a5273d6992

View File

@ -62,7 +62,7 @@ mixramp_interpolate(const char *ramp_list, float required_db) noexcept
++ramp_list;
/* Check for exact match. */
if (db == required_db) {
if (db >= required_db) {
return duration;
}