Skip to content

Commit

Permalink
Fix for unsigned int issue
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsimon committed Jan 12, 2022
1 parent 1f1ac28 commit 5c86da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/doxysearch/doxysearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void highlighter(const std::string &s,
size_t bi=i-(fragLen-wl)/2;
size_t ei=i+wl+(fragLen-wl)/2;
int occ=0;
if (bi<0) { ei-=bi; bi=0; } else startFragment=dots;
if (bi>sl) { ei-=bi; bi=0; } else startFragment=dots;
if (ei>sl) { ei=sl; } else endFragment=dots;
while (bi>0 && !isspace(s[bi])) bi--; // round to start of the word
while (ei<sl && !isspace(s[ei])) ei++; // round to end of the word
Expand Down

0 comments on commit 5c86da0

Please sign in to comment.