diff options
Diffstat (limited to 'lout')
-rw-r--r-- | lout/container.cc | 6 | ||||
-rw-r--r-- | lout/misc.hh | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lout/container.cc b/lout/container.cc index db1cc560..2dd56255 100644 --- a/lout/container.cc +++ b/lout/container.cc @@ -229,7 +229,7 @@ int Vector::bsearch(Object *key, bool mustExist, int start, int end, int low = start, high = end; bool found = false; - while (!found) { + while (!found) { int index = (low + high) / 2; int c = comparator->compare (key, array[index]); DBG_OBJ_MSGF ("container", 1, @@ -248,14 +248,14 @@ int Vector::bsearch(Object *key, bool mustExist, int start, int end, result = c > 0 ? index + 1 : index; } } - + if (c < 0) high = index - 1; else low = index + 1; } } - } + } DBG_OBJ_MSGF ("container", 1, "result = %d", result); DBG_OBJ_MSG_END (); diff --git a/lout/misc.hh b/lout/misc.hh index cac3da77..7edf83c1 100644 --- a/lout/misc.hh +++ b/lout/misc.hh @@ -440,7 +440,7 @@ public: // The original assertion /// // "assert (i < this->numMain + this->numExtra)" - // + // // causes this warnung in dw::Textblock::breakAdded: // // "assuming signed overflow does not occur when assuming that |