summaryrefslogtreecommitdiff
path: root/tests/test_memory.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 16:28:10 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 16:28:10 +0000
commit954de8f89a5538129b5ebf89b8fe06678051f516 (patch)
tree4a665920a6d1d84700b9266105ab36056598c302 /tests/test_memory.cpp
parent589947da0bf3e446f0499c3052821a5019a0e94e (diff)
tests: Various compilation fixes for BCC and MSVC6
git-svn-id: http://pugixml.googlecode.com/svn/trunk@702 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_memory.cpp')
-rw-r--r--tests/test_memory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_memory.cpp b/tests/test_memory.cpp
index b7a5577..a37b91e 100644
--- a/tests/test_memory.cpp
+++ b/tests/test_memory.cpp
@@ -164,7 +164,7 @@ TEST(memory_string_allocate_decreasing)
for (int i = 0; i < 17; ++i) s += s;
- for (int i = 0; i < 17; ++i)
+ for (int j = 0; j < 17; ++j)
{
s.resize(s.size() / 2);
@@ -178,9 +178,9 @@ TEST(memory_string_allocate_decreasing)
CHECK(result.size() == 262143);
CHECK(result[result.size() - 1] == 'x');
- for (size_t j = 0; j + 1 < result.size(); ++j)
+ for (size_t k = 0; k + 1 < result.size(); ++k)
{
- CHECK(result[j] == (j % 2 ? 'b' : 'a'));
+ CHECK(result[k] == (k % 2 ? 'b' : 'a'));
}
}
@@ -221,7 +221,7 @@ TEST(memory_string_allocate_decreasing_inplace)
for (int i = 0; i < 17; ++i) s += s;
- for (int i = 0; i < 17; ++i)
+ for (int j = 0; j < 17; ++j)
{
s.resize(s.size() / 2);