OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67ef44e
)
PATCH: [ 1865080 ] Successfully compile in Visual C++ 6
author
Kimmo Varis
<kimmov@gmail.com>
Sun, 28 Sep 2008 07:03:22 +0000
(07:03 +0000)
committer
Kimmo Varis
<kimmov@gmail.com>
Sun, 28 Sep 2008 07:03:22 +0000
(07:03 +0000)
Move declarations before goto to avoid error (GhostTextBuffer.zip)
Submitted by Dmitry Maslov
Src/GhostTextBuffer.cpp
patch
|
blob
|
history
diff --git
a/Src/GhostTextBuffer.cpp
b/Src/GhostTextBuffer.cpp
index
6073156
..
86505cb
100644
(file)
--- 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;