| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4cdc5ea commit 48ce1eb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -458,7 +458,7 @@ size_t StringSearch<Char>::BoyerMooreHorspoolSearch( | |||
| 458 | 458 | const size_t subject_length = subject.length(); | |
| 459 | 459 | const size_t pattern_length = pattern_.length(); | |
| 460 | 460 | int* char_occurrences = bad_char_shift_table_; | |
| 461 | - int64_t badness = -pattern_length; | ||
| 461 | + int64_t badness = -static_cast<int64_t>(pattern_length); | ||
| 462 | 462 | ||
| 463 | 463 | // How bad we are doing without a good-suffix table. | |
| 464 | 464 | Char last_char = pattern_[pattern_length - 1]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments