Fixed infinite loop in diagnostics
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -57,7 +57,11 @@ size_t DiagnosticsHolder::GetLineFromPosition(size_t i) {
|
||||
if (pos > i){
|
||||
topLimit = half;
|
||||
} else if (pos < i){
|
||||
bottomLimit = half;
|
||||
if (bottomLimit == half){
|
||||
bottomLimit = half + 1;
|
||||
} else{
|
||||
bottomLimit = half;
|
||||
}
|
||||
} else{
|
||||
return half;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user