aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-01 02:01:28 +0000
committernyamatongwe <unknown>2000-04-01 02:01:28 +0000
commit0e6e05226f69f7bdd5fe4415a43be5be882b414c (patch)
treea4a8d14a669ffe05bef03dc47f76262bc25b2e41 /src/CellBuffer.cxx
parentc7b2ff7108860ebc5c8bd56f435ca31b3b4c4065 (diff)
downloadscintilla-mirror-0e6e05226f69f7bdd5fe4415a43be5be882b414c.tar.gz
Fixed warnings from Borland compiler.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx3
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 {