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

Replace if with assert. #19

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

Conversation

pvc1989
Copy link
Contributor

@pvc1989 pvc1989 commented Sep 18, 2020

The only case for marker[qid] == 0 to be true is when elen == 0, which means the qid element has 0 node. So, the if clause will never be entered and can be safely replace by an assert statement, which can be turned off by setting the NDEBUG compiler flag.

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.

None yet

1 participant