Skip to content

Commit

Permalink
src: fix warning in string_search.h
Browse files Browse the repository at this point in the history
Fixes: #37145

PR-URL: #37146
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
RaisinTen authored and targos committed May 1, 2021
1 parent 03752c0 commit ec7e5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string_search.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ size_t StringSearch<Char>::BoyerMooreHorspoolSearch(
const size_t subject_length = subject.length();
const size_t pattern_length = pattern_.length();
int* char_occurrences = bad_char_shift_table_;
int64_t badness = -pattern_length;
int64_t badness = -static_cast<int64_t>(pattern_length);

// How bad we are doing without a good-suffix table.
Char last_char = pattern_[pattern_length - 1];
Expand Down

0 comments on commit ec7e5bc

Please sign in to comment.