aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-02-25 10:15:13 +0100
committerSebastian Geerken <devnull@localhost>2014-02-25 10:15:13 +0100
commitf8d9a119ebc114501d42e4d9bf13a9522eb0a0f4 (patch)
treebe778303dd3063371394856a2673008f70a693a4
parent514cb3b8fae7e094e4d668da59cc8b6066c20cbf (diff)
Fixed RTFL.
-rw-r--r--lout/container.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lout/container.cc b/lout/container.cc
index 0e06722e..06c023b9 100644
--- a/lout/container.cc
+++ b/lout/container.cc
@@ -215,7 +215,7 @@ int Vector::bsearch(Object *key, bool mustExist, int start, int end,
mustExist ? "true" : "false", start, end);
DBG_OBJ_MSG_START ();
- int result;
+ int result = -123; // Compiler happiness: GCC 4.7 does not handle this?
if (start > end) {
DBG_OBJ_MSG ("container", 1, "empty");
@@ -229,7 +229,7 @@ int Vector::bsearch(Object *key, bool mustExist, int start, int end,
int c = comparator->compare (key, array[index]);
DBG_OBJ_MSGF ("container", 1,
"searching within %d and %d; compare key with #%d => %d",
- low, start, index, c);
+ low, high, index, c);
if (c == 0) {
found = true;
result = index;