diff options
author | Sebastian Geerken <devnull@localhost> | 2014-02-25 10:15:13 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-02-25 10:15:13 +0100 |
commit | f8d9a119ebc114501d42e4d9bf13a9522eb0a0f4 (patch) | |
tree | be778303dd3063371394856a2673008f70a693a4 /lout/container.cc | |
parent | 514cb3b8fae7e094e4d668da59cc8b6066c20cbf (diff) |
Fixed RTFL.
Diffstat (limited to 'lout/container.cc')
-rw-r--r-- | lout/container.cc | 4 |
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; |