diff options
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; |