Skip to content

Commit 5c86da0

Browse files
committed
Fix for unsigned int issue
1 parent 1f1ac28 commit 5c86da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/doxysearch/doxysearch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static void highlighter(const std::string &s,
253253
size_t bi=i-(fragLen-wl)/2;
254254
size_t ei=i+wl+(fragLen-wl)/2;
255255
int occ=0;
256-
if (bi<0) { ei-=bi; bi=0; } else startFragment=dots;
256+
if (bi>sl) { ei-=bi; bi=0; } else startFragment=dots;
257257
if (ei>sl) { ei=sl; } else endFragment=dots;
258258
while (bi>0 && !isspace(s[bi])) bi--; // round to start of the word
259259
while (ei<sl && !isspace(s[ei])) ei++; // round to end of the word

0 commit comments

Comments
 (0)