From 4abeb04076c58f981036f1a2a2230da082fd831b Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 28 Sep 2008 07:03:22 +0000 Subject: [PATCH] PATCH: [ 1865080 ] Successfully compile in Visual C++ 6 Move declarations before goto to avoid error (GhostTextBuffer.zip) Submitted by Dmitry Maslov --- Src/GhostTextBuffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/GhostTextBuffer.cpp b/Src/GhostTextBuffer.cpp index 6073156ec..86505cb2a 100644 --- a/Src/GhostTextBuffer.cpp +++ b/Src/GhostTextBuffer.cpp @@ -1031,6 +1031,9 @@ int CGhostTextBuffer::ComputeApparentLine(int nRealLine, int decToReal) const int nApparent; const int size = (int) m_RealityBlocks.size(); + int blo = 0; + int bhi = size - 1; + int i; if (size == 0) return 0; @@ -1044,9 +1047,6 @@ int CGhostTextBuffer::ComputeApparentLine(int nRealLine, int decToReal) const } // binary search to find correct (or nearest block) - int blo = 0; - int bhi = size - 1; - int i; while (blo <= bhi) { i = (blo + bhi) / 2; -- 2.11.0