Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a5273d69
Commit
a5273d69
authored
Apr 08, 2020
by
Rosen Penev
Committed by
Max Kellermann
Apr 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
b18074f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
CrossFade.cxx
src/player/CrossFade.cxx
+1
-1
No files found.
src/player/CrossFade.cxx
View file @
a5273d69
...
@@ -62,7 +62,7 @@ mixramp_interpolate(const char *ramp_list, float required_db) noexcept
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment