Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Missing parantheses compiler warning #9

Open
Dead2 opened this issue Oct 13, 2014 · 0 comments
Open

Missing parantheses compiler warning #9

Dead2 opened this issue Oct 13, 2014 · 0 comments

Comments

@Dead2
Copy link

Dead2 commented Oct 13, 2014

crc_folding.c: In function ‘crc_fold_copy’:
crc_folding.c:288:19: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
algn_diff = 0 - (unsigned long)src & 0xF;

I am unsure what the correct behaviour is here, and hope that someone who knows the algorithm can clarify this in the code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant