Skip to content

Commit

Permalink
clipmenud: correct cast to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
N-R-K authored and cdown committed Jun 7, 2024
1 parent 4a1e026 commit 1113ca8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/clipmenud.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ static void maybe_trim(void) {
uint64_t cur_clips;
expect(cs_len(&cs, &cur_clips) == 0);
if ((int)cur_clips > cfg.max_clips_batch) {
expect(cs_trim(&cs, CS_ITER_NEWEST_FIRST, (uint64_t)cfg.max_clips) ==
0);
expect(cs_trim(&cs, CS_ITER_NEWEST_FIRST, (size_t)cfg.max_clips) == 0);
}
}

Expand Down

0 comments on commit 1113ca8

Please sign in to comment.