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
On Windows with MSVC, the implementation of StringSearch<Char>::BoyerMooreHorspoolSearch emits a concerning warning.
StringSearch<Char>::BoyerMooreHorspoolSearch
Code:
node/src/string_search.h
Lines 459 to 461 in fd02dac
The emitted warning is C4146: unary minus operator applied to unsigned type, result still unsigned
This looks like it introduces a bug in the function, at least on Windows, because badness is never going to be a negative number.
badness
The text was updated successfully, but these errors were encountered:
src: fix warning in string_search.h
73933eb
Fixes: nodejs#37145
c148c3a
48ce1eb
Fixes: #37145 PR-URL: #37146 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
ec7e5bc
Successfully merging a pull request may close this issue.
On Windows with MSVC, the implementation of
StringSearch<Char>::BoyerMooreHorspoolSearch
emits a concerning warning.Code:
node/src/string_search.h
Lines 459 to 461 in fd02dac
The emitted warning is C4146: unary minus operator applied to unsigned type, result still unsigned
This looks like it introduces a bug in the function, at least on Windows, because
badness
is never going to be a negative number.The text was updated successfully, but these errors were encountered: