From 9d6bb4751360864ce96bcb6e223d578ccf0eb060 Mon Sep 17 00:00:00 2001 From: Perry Rapp Date: Wed, 27 Oct 2004 16:25:17 +0000 Subject: [PATCH] PATCH: [ 1003457 ] Move difflist to new class DiffList: Fix warnings for signed/unsigned comparison --- Src/DiffList.cpp | 6 +++--- Src/readme.txt | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Src/DiffList.cpp b/Src/DiffList.cpp index abbc3a263..0574ded7e 100644 --- a/Src/DiffList.cpp +++ b/Src/DiffList.cpp @@ -128,7 +128,7 @@ BOOL DiffList::LineInDiff(UINT nLine, UINT nDiff) const int DiffList::LineToDiff(UINT nLine) const { const int nDiffCount = m_diffs.GetSize(); - for (UINT i = 0; i < nDiffCount; i++) + for (int i = 0; i < nDiffCount; i++) { if (LineInDiff(nLine, i)) return i; @@ -180,7 +180,7 @@ BOOL DiffList::GetNextDiff(int nLine, int &nDiff) const { bInDiff = FALSE; const int nDiffCount = m_diffs.GetSize(); - for (UINT i = 0; i < nDiffCount; i++) + for (int i = 0; i < nDiffCount; i++) { if ((int)m_diffs[i].dbegin0 >= nLine) { @@ -223,7 +223,7 @@ int DiffList::NextDiffFromLine(UINT nLine) const int nDiff = -1; const int nDiffCount = m_diffs.GetSize(); - for (UINT i = 0; i < nDiffCount; i++) + for (int i = 0; i < nDiffCount; i++) { if (m_diffs[i].dbegin0 >= nLine) { diff --git a/Src/readme.txt b/Src/readme.txt index ed1342530..256fd3ceb 100644 --- a/Src/readme.txt +++ b/Src/readme.txt @@ -1,3 +1,8 @@ +2004-10-27 Perry + PATCH: [ 1003457 ] Move difflist to new class DiffList + Fix warnings for signed/unsigned comparison + Src: DiffList.cpp + 2004-10-26 Kimmo PATCH: [ 1003457 ] Move difflist to new class DiffList Last minute updates to files I forgot to add (thanks Perry!) -- 2.11.0