Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03752c0 commit ec7e5bcCopy full SHA for ec7e5bc
src/string_search.h
@@ -458,7 +458,7 @@ size_t StringSearch<Char>::BoyerMooreHorspoolSearch(
458
const size_t subject_length = subject.length();
459
const size_t pattern_length = pattern_.length();
460
int* char_occurrences = bad_char_shift_table_;
461
- int64_t badness = -pattern_length;
+ int64_t badness = -static_cast<int64_t>(pattern_length);
462
463
// How bad we are doing without a good-suffix table.
464
Char last_char = pattern_[pattern_length - 1];
0 commit comments