Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marc: use type int like other index types here #147

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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