Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SIGFPE on small number of overlaps #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jchorl
Copy link

@jchorl jchorl commented Dec 24, 2021

Greetings,

I found that with a small number of overlaps, logger_step = overlaps.size() / RACON_LOGGER_BIN_SIZE will yield 0.

This causes a divide-by-zero:

                        log_bar_idx = window_idx / logger_step;

Now, there are in-fact overlaps, so the code should still execute. Let me know what you think of the fix. We could also just use an if below.

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.

1 participant