diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-06-17 15:15:14 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-06-17 15:15:14 +0200 |
commit | 1163f512e637f20677a0da8c9448523f3a08318c (patch) | |
tree | 2cf09ac05e09c8ed2127d5c7df13c35b57dffde4 | |
parent | c051a4ba3bb6a4635125704a84cbd49e8b19321d (diff) |
binsearch_closest: Fix spacing
-rw-r--r-- | binsearch_closest/binsearch_closest.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binsearch_closest/binsearch_closest.hpp b/binsearch_closest/binsearch_closest.hpp index e95876a..3db703f 100644 --- a/binsearch_closest/binsearch_closest.hpp +++ b/binsearch_closest/binsearch_closest.hpp @@ -45,7 +45,7 @@ ssize_t binsearch_closest(const std::vector<T> vec, T val) return vec.size() - 1; size_t imin = 0; - size_t imax = vec.size() - 1; + size_t imax = vec.size() - 1; while (imax - imin > 1) { // determine midpoint, prevent integer overflow size_t imid = imin + ((imax - imin) / 2); |