Skip to content

Commit

Permalink
fix: proper index type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Nov 18, 2024
1 parent da5fc33 commit dcc6bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/src/highlighterset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ HighlighterMatchType HighlighterSet::matchLine( const QString& line,

auto matchType = HighlighterMatchType::NoMatch;

for ( int index = highlighterList_.size() - 1; index >= 0; --index ) {
for ( int index = static_cast<int>(highlighterList_.size()) - 1; index >= 0; --index ) {
const Highlighter& hl = highlighterList_[ index ];
if ( !matchedPatterns[ static_cast<size_t>( index ) ].second ) {
continue;
Expand Down

0 comments on commit dcc6bb6

Please sign in to comment.