File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,7 @@ size_t StringSearch<Char>::BoyerMooreSearch(
351
351
// we have matched more than our tables allow us to be smart about.
352
352
// Fall back on BMH shift.
353
353
index += pattern_length - 1 -
354
- CharOccurrence (bad_char_occurrence,
355
- static_cast <Char>(last_char));
354
+ CharOccurrence (bad_char_occurrence, last_char);
356
355
} else {
357
356
int gs_shift = good_suffix_shift[j + 1 ];
358
357
int bc_occ = CharOccurrence (bad_char_occurrence, c);
@@ -449,7 +448,7 @@ size_t StringSearch<Char>::BoyerMooreHorspoolSearch(
449
448
Char last_char = pattern_[pattern_length - 1 ];
450
449
int last_char_shift =
451
450
pattern_length - 1 -
452
- CharOccurrence (char_occurrences, static_cast <Char>( last_char) );
451
+ CharOccurrence (char_occurrences, last_char);
453
452
454
453
// Perform search
455
454
size_t index = start_index; // No matches found prior to this index.
You can’t perform that action at this time.
0 commit comments