Skip to content

Avoid iterator being one off and DEBUG_ASSERT in Beats::iteratorFrom - #13150

Merged
JoergAtGithub merged 1 commit into
mixxxdj:2.4from
m0dB:fix-13149
Apr 21, 2024
Merged

Avoid iterator being one off and DEBUG_ASSERT in Beats::iteratorFrom#13150
JoergAtGithub merged 1 commit into
mixxxdj:2.4from
m0dB:fix-13149

Conversation

@m0dB

@m0dB m0dB commented Apr 21, 2024

Copy link
Copy Markdown
Contributor

Avoid iterator being one off and avoid DEBUG_ASSERT in Beats::iteratorFrom, by also moving to the previous iterator when needed when going in negative direction to account for fp errors.

Fixes #13149

@m0dB
m0dB requested a review from JoergAtGithub April 21, 2024 13:11
@m0dB m0dB modified the milestones: 2.4.1, 2.5-beta Apr 21, 2024
@JoergAtGithub

Copy link
Copy Markdown
Member

I tested this the same way as #12994 and no assert occured!

@JoergAtGithub

Copy link
Copy Markdown
Member

LGTM! Thank you!

@JoergAtGithub
JoergAtGithub merged commit 676c549 into mixxxdj:2.4 Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Beats::iteratorFrom floating point error resulting in DEBUG_ASSERT failing

2 participants