| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2a2a4e6 commit 81c5382
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -348,8 +348,7 @@ size_t StringSearch<Char>::BoyerMooreSearch( | |||
| 348 | 348 | // we have matched more than our tables allow us to be smart about. | |
| 349 | 349 | // Fall back on BMH shift. | |
| 350 | 350 | index += pattern_length - 1 - | |
| 351 | - CharOccurrence(bad_char_occurrence, | ||
| 352 | - static_cast<Char>(last_char)); | ||
| 351 | + CharOccurrence(bad_char_occurrence, last_char); | ||
| 353 | 352 | } else { | |
| 354 | 353 | int gs_shift = good_suffix_shift[j + 1]; | |
| 355 | 354 | int bc_occ = CharOccurrence(bad_char_occurrence, c); | |
@@ -446,7 +445,7 @@ size_t StringSearch<Char>::BoyerMooreHorspoolSearch( | |||
| 446 | 445 | Char last_char = pattern_[pattern_length - 1]; | |
| 447 | 446 | int last_char_shift = | |
| 448 | 447 | pattern_length - 1 - | |
| 449 | - CharOccurrence(char_occurrences, static_cast<Char>(last_char)); | ||
| 448 | + CharOccurrence(char_occurrences, last_char); | ||
| 450 | 449 | ||
| 451 | 450 | // Perform search | |
| 452 | 451 | size_t index = start_index; // No matches found prior to this index. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments