Commit a5273d69 authored by Rosen Penev's avatar Rosen Penev Committed by Max Kellermann

Fix unsafe float comparison.

Switching == to >= should be safe here since the next if is the opposite. Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent b18074f8
......@@ -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;
}
......
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