Skip to content

Commit

Permalink
Revert "Fix unsafe float comparison."
Browse files Browse the repository at this point in the history
This reverts commit a5273d6.  It was
wrong and broke the MixRamp unit test.

Closes MusicPlayerDaemon#844
  • Loading branch information
MaxKellermann committed Apr 30, 2020
1 parent 47a7707 commit 7aea285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ver 0.21.24 (not yet released)
* fix unit test failure

ver 0.21.23 (2020/04/23)
* protocol
Expand Down
2 changes: 1 addition & 1 deletion src/player/CrossFade.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7aea285

Please sign in to comment.