Revert "Fix unsafe float comparison."
This reverts commit a5273d6992
. It was
wrong and broke the MixRamp unit test.
Closes https://github.com/MusicPlayerDaemon/MPD/issues/844
This commit is contained in:
parent
47a7707df1
commit
7aea285361
1
NEWS
1
NEWS
|
@ -1,4 +1,5 @@
|
||||||
ver 0.21.24 (not yet released)
|
ver 0.21.24 (not yet released)
|
||||||
|
* fix unit test failure
|
||||||
|
|
||||||
ver 0.21.23 (2020/04/23)
|
ver 0.21.23 (2020/04/23)
|
||||||
* protocol
|
* protocol
|
||||||
|
|
|
@ -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