Skip to content

Commit

Permalink
Add cast for -1 size_t value
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdickmeiss committed Feb 14, 2025
1 parent 1572e51 commit 2007987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/marcdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static long marcdump_read_iso2709(yaz_marc_t mt, const char *from, const char *t
cd1 = 0;
}

if (r == -1)
if (r == (size_t)-1)
no_errors++;
if (r > 0 && result && len_result && marc_no >= offset)
{
Expand Down

0 comments on commit 2007987

Please sign in to comment.