-
Notifications
You must be signed in to change notification settings - Fork 851
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
Refax around Window measurement facility #2857
Refax around Window measurement facility #2857
Conversation
srtcore/utilities.h
Outdated
for (; p != end; ++p, ++para) | ||
{ | ||
// Throw away those that don't fit in the filter | ||
if (*p < filter.lower || *p > filter.upper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be identical with the previous version should be <=
and >=
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! Forgot that De Morgan's laws apply also to relative operators.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment remains unaddressed.
Damn, it was the same in two different places :) I'm thinking maybe it should be also extracted... |
Extracted longer and copy-paste-looking code into external functions. Potentially they can be reused in other measurement activities.