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

[lib/entropy_common] remove checking on error. Change '&' to '&&' at the while loop condition. #117

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

Conversation

TheVice
Copy link
Contributor

@TheVice TheVice commented Mar 21, 2024

Hello.

While reading source code at the repository I detected that, checking at the FSE_readNCount function of lib/entropy_common.c file on error is not necessary - from the outside of function at least. Because same result will be returned, unless corruption of the data was detected.
Probably possibility to set brake point on that line or addition output from the error function will be the reason to left such checking.

Latter in this function at the while loop condition - placed bit operation instead of checking on logical AND.
Proposed to replaced with the last one.

Thank you.

Changed '&' to '&&' at the while loop condition.
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