Skip to content

Commit

Permalink
platsch: use unsigned int for loop
Browse files Browse the repository at this point in the history
The ARRAY_SIZE macro returns an unsigned integer, use an unsigned int
for the loop to avoid a sign compare warning.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Jul 19, 2024
1 parent 5ffd7c9 commit 8c78ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platsch.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static char *get_normalized_conn_type_name(uint32_t connector_type)

static const struct platsch_format *platsch_format_find(const char *name)
{
int i;
unsigned i;

for (i = 0; i < ARRAY_SIZE(platsch_formats); i++)
if (!strcmp(platsch_formats[i].name, name))
Expand Down

0 comments on commit 8c78ec3

Please sign in to comment.