apply clang-format

This commit is contained in:
Axel Kohlmeyer
2021-09-06 17:01:22 -04:00
parent 898f8086db
commit 63a2882127

View File

@ -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;
}