diff options
author | nyamatongwe <devnull@localhost> | 2000-04-01 02:01:28 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-04-01 02:01:28 +0000 |
commit | dda4ea2c804522c57e6dc2e4ae1ab1bb8b0ac073 (patch) | |
tree | a4a8d14a669ffe05bef03dc47f76262bc25b2e41 /src/CellBuffer.cxx | |
parent | a54fa180f65c6664ecd707cd9953f0781eaefed6 (diff) | |
download | scintilla-mirror-dda4ea2c804522c57e6dc2e4ae1ab1bb8b0ac073.tar.gz |
Fixed warnings from Borland compiler.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 56a4be78c..1b1320667 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -233,9 +233,8 @@ int LineVector::LineFromPosition(int pos) { return lines - 1; int lower = 0; int upper = lines; - int middle = 0; do { - middle = (upper + lower + 1) / 2; // Round high + int middle = (upper + lower + 1) / 2; // Round high if (pos < linesData[middle].startPosition) { upper = middle - 1; } else { |