Skip to content

Commit

Permalink
Fix: data type consistency and Wconv catch (bloomberg#238)
Browse files Browse the repository at this point in the history
Signed-off-by: Melvin He <[email protected]>
  • Loading branch information
melvinhe authored and alexander-e1off committed Oct 24, 2024
1 parent a06564f commit 9ee2844
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/groups/mwc/mwcc/mwcc_array.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ static void test1_breathingTest()
ObjType obj1(s_allocator_p);
ObjType obj2(s_allocator_p);

for (size_t i = 0; i < 50; ++i) {
for (int i = 0; i < 50; ++i) {
obj1.push_back(TestType("a", s_allocator_p));
}

for (size_t i = 0; i < 100; ++i) {
for (int i = 0; i < 100; ++i) {
obj2.push_back(TestType("b", s_allocator_p));
}

Expand All @@ -416,11 +416,11 @@ static void test1_breathingTest()
ObjType obj1(s_allocator_p);
ObjType obj2(s_allocator_p);

for (size_t i = 0; i < 50; ++i) {
for (int i = 0; i < 50; ++i) {
obj1.push_back(TestType("a", s_allocator_p));
}

for (size_t i = 0; i < 100; ++i) {
for (int i = 0; i < 100; ++i) {
obj2.push_back(TestType("b", s_allocator_p));
}

Expand All @@ -434,7 +434,7 @@ static void test1_breathingTest()
{
ObjType* obj = new (*s_allocator_p) ObjType(s_allocator_p);

for (size_t i = 0; i < 50; ++i) {
for (int i = 0; i < 50; ++i) {
obj->push_back(TestType("a", s_allocator_p));
}

Expand Down Expand Up @@ -629,12 +629,12 @@ static void test6_assign()
bslma::TestAllocator ta("testAlloc");

ObjType obj(&ta);
for (size_t i = 0; i < k_STATIC_LEN + 5; ++i) {
for (int i = 0; i < k_STATIC_LEN + 5; ++i) {
obj.push_back(TestType(i, s_allocator_p));
}

bsl::vector<TestType> srcVec(s_allocator_p);
for (size_t i = 0; i < 2 * k_STATIC_LEN; ++i) {
for (int i = 0; i < 2 * k_STATIC_LEN; ++i) {
srcVec.push_back(TestType(10 * i, s_allocator_p));
}

Expand Down

0 comments on commit 9ee2844

Please sign in to comment.