Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: data type consistency and Wconv catch #238

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading