Skip to content

Commit

Permalink
[C] Keep loop types consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Sep 20, 2023
1 parent b10448a commit bfe832c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aeron-driver/src/test/c/agent/aeron_driver_agent_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DriverAgentTest : public testing::Test

static void assert_all_events_disabled()
{
for (int i = 0; i < aeron_driver_agent_max_event_count(); i++)
for (size_t i = 0; i < aeron_driver_agent_max_event_count(); i++)
{
auto event_id = static_cast<aeron_driver_agent_event_t>(i);
EXPECT_FALSE(aeron_driver_agent_is_event_enabled(event_id));
Expand All @@ -61,7 +61,7 @@ class DriverAgentTest : public testing::Test

static void assert_all_events_enabled()
{
for (int i = 0; i < aeron_driver_agent_max_event_count(); i++)
for (size_t i = 0; i < aeron_driver_agent_max_event_count(); i++)
{
auto event_id = static_cast<aeron_driver_agent_event_t>(i);
auto event_name = aeron_driver_agent_event_name(event_id);
Expand All @@ -75,7 +75,7 @@ class DriverAgentTest : public testing::Test

static void assert_admin_events_enabled(const bool is_enabled)
{
for (int i = 0; i < aeron_driver_agent_max_event_count(); i++)
for (size_t i = 0; i < aeron_driver_agent_max_event_count(); i++)
{
auto event_id = static_cast<aeron_driver_agent_event_t>(i);
if (AERON_DRIVER_EVENT_FRAME_IN != event_id &&
Expand Down Expand Up @@ -133,7 +133,7 @@ TEST_F(DriverAgentTest, allLoggingEventsShouldHaveUniqueNames)
std::set<std::string> names;
std::string unknown_name = std::string(AERON_DRIVER_AGENT_EVENT_UNKNOWN_NAME);

for (int i = 0; i < aeron_driver_agent_max_event_count(); i++)
for (size_t i = 0; i < aeron_driver_agent_max_event_count(); i++)
{
auto event_id = static_cast<aeron_driver_agent_event_t>(i);
auto event_name = std::string(aeron_driver_agent_event_name(event_id));
Expand Down

0 comments on commit bfe832c

Please sign in to comment.