apply clang-format
This commit is contained in:
@ -1298,8 +1298,10 @@ int utils::binary_search(const double needle, const int n, const double *haystac
|
||||
|
||||
int index = (lo + hi) / 2;
|
||||
while (lo < hi - 1) {
|
||||
if (needle < haystack[index]) hi = index;
|
||||
else if (needle >= haystack[index]) lo = index;
|
||||
if (needle < haystack[index])
|
||||
hi = index;
|
||||
else if (needle >= haystack[index])
|
||||
lo = index;
|
||||
index = (lo + hi) / 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user