Skip to content

Commit

Permalink
marc: use type int like other index types here (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdickmeiss authored Feb 14, 2025
1 parent c6ff0d5 commit e571f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marc_read_iso2709.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int yaz_marc_read_iso2709(yaz_marc_t mt, const char *buf, int bsize)
yaz_marc_add_datafield(mt, tag, buf + i_start,
i - i_start);
}
size_t code_offset = i + 1;
int code_offset = i + 1;
while (i < end_offset && buf[i] != ISO2709_RS && buf[i] != ISO2709_FS)
{
if (buf[i] == ISO2709_IDFS && i < end_offset -1 && !(buf[i+1] >= 0 && buf[i+1] <= ' '))
Expand Down

0 comments on commit e571f22

Please sign in to comment.