From cd937026b358d917a1701b4ca5c4bdf410438d85 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Tue, 7 Oct 2008 09:29:45 +0000 Subject: [PATCH] VC++ 6 compilo. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/archive/archivetest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index c92cb7390d..e70751bf80 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -1200,9 +1200,10 @@ void CorruptionTestCase::runTest() CreateArchive(out); TestInputStream in(out, 0); wxFileOffset len = in.GetLength(); + int pos, size; // try flipping one byte in the archive - for (int pos = 0; pos < len; pos++) { + for (pos = 0; pos < len; pos++) { char n = in[pos]; in[pos] = ~n; ExtractArchive(in); @@ -1211,7 +1212,7 @@ void CorruptionTestCase::runTest() } // try zeroing one byte in the archive - for (int pos = 0; pos < len; pos++) { + for (pos = 0; pos < len; pos++) { char n = in[pos]; in[pos] = 0; ExtractArchive(in); @@ -1220,7 +1221,7 @@ void CorruptionTestCase::runTest() } // try chopping the archive off - for (int size = 1; size <= len; size++) { + for (size = 1; size <= len; size++) { in.Chop(size); ExtractArchive(in); in.Rewind();