Skip to content

Commit

Permalink
platsch: use int for loops
Browse files Browse the repository at this point in the history
In both cases the count of items the for loop is iterating over are
integers, use integers for the iteration to avoid a sign compare
warning.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Jul 19, 2024
1 parent 29b89a5 commit 5ffd7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platsch.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int drmprepare_crtc(int fd, drmModeRes *res, drmModeConnector *conn,
struct modeset_dev *dev)
{
drmModeEncoder *enc;
unsigned int i, j;
int i, j;
int32_t crtc_id;
struct modeset_dev *iter;

Expand Down Expand Up @@ -483,7 +483,7 @@ static int drmprepare(int fd)
{
drmModeRes *res;
drmModeConnector *conn;
unsigned int i;
int i;
struct modeset_dev *dev;
int ret;

Expand Down

0 comments on commit 5ffd7c9

Please sign in to comment.