]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/arrays/arrays.cpp
g++ compilation fix after latest changes
[wxWidgets.git] / tests / arrays / arrays.cpp
index bca37379db8053a5ec518916f085b6f0f0ce46c5..5ed8f5eee3b421b9fa68a8e511675aa1759a54ba 100644 (file)
@@ -608,8 +608,13 @@ void DoTestSwap(T v1, T v2, T v3,
 void ArraysTestCase::Swap()
 {
     DoTestSwap("Foo", "Bar", "Baz", (wxArrayString *)NULL);
+
+    // VC6 can't compile this call with mysterious error about in DoTestSwap()
+#ifndef __VISUALC6__
     DoTestSwap(1, 10, 100, (wxArrayInt *)NULL);
-    DoTestSwap(6, 28, 496, (wxArrayLong *)NULL);
+#endif
+
+    DoTestSwap(6L, 28L, 496L, (wxArrayLong *)NULL);
 }
 
 void ArraysTestCase::TestSTL()