]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/archive/archivetest.cpp
further improve the automatic modify mode: wrap correctly inserted prototypes at...
[wxWidgets.git] / tests / archive / archivetest.cpp
index c92cb7390d9cb454850329c9df4da6101032d40a..dc5caa473eb9ecce2d1a941336cc73fc453004c1 100644 (file)
@@ -1202,7 +1202,8 @@ void CorruptionTestCase::runTest()
     wxFileOffset len = in.GetLength();
 
     // try flipping one byte in the archive
-    for (int pos = 0; pos < len; pos++) {
+    int 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);