summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-06-17 15:15:14 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-06-17 15:15:14 +0200
commit1163f512e637f20677a0da8c9448523f3a08318c (patch)
tree2cf09ac05e09c8ed2127d5c7df13c35b57dffde4
parentc051a4ba3bb6a4635125704a84cbd49e8b19321d (diff)
binsearch_closest: Fix spacing
-rw-r--r--binsearch_closest/binsearch_closest.hpp2
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);