We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The problematic line is here.
final mask = 1 << (patternLen <= 31 ? patternLen - 1 : 30);
If patternLen = 0 then (patternLen <= 31 ? patternLen - 1 : 30)=-1 which promptly fails the shift.
patternLen = 0
(patternLen <= 31 ? patternLen - 1 : 30)=-1
The text was updated successfully, but these errors were encountered:
Hey again @zacps, thanks for pointing this!
Could you open a PR fixing this issue? I'd greatly appreaciate it!
Sorry, something went wrong.
c7f1ce3
Merge pull request #6 from danielmahon/fix-initial-errors
5419ca0
[fix] fix range errors, allow empty pattern, fixes #3, fixes #4
No branches or pull requests
The problematic line is here.
If
patternLen = 0
then(patternLen <= 31 ? patternLen - 1 : 30)=-1
which promptly fails the shift.The text was updated successfully, but these errors were encountered: