Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48ce1eb

Browse filesBrowse files
RaisinTendanielleadams
authored andcommitted
src: fix warning in string_search.h
Fixes: #37145 PR-URL: #37146 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 4cdc5ea commit 48ce1eb
Copy full SHA for 48ce1eb

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/string_search.h‎

Copy file name to clipboardExpand all lines: src/string_search.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ size_t StringSearch<Char>::BoyerMooreHorspoolSearch(
458458
const size_t subject_length = subject.length();
459459
const size_t pattern_length = pattern_.length();
460460
int* char_occurrences = bad_char_shift_table_;
461-
int64_t badness = -pattern_length;
461+
int64_t badness = -static_cast<int64_t>(pattern_length);
462462

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.