From 309a2a630bc3ae477ae17b573cd42d3c3d859ceb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 14 Feb 2025 11:11:43 +0100 Subject: [PATCH] marc: use type int like other index types here --- src/marc_read_iso2709.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marc_read_iso2709.c b/src/marc_read_iso2709.c index 9ffa7a4a..ee5fc33a 100644 --- a/src/marc_read_iso2709.c +++ b/src/marc_read_iso2709.c @@ -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] <= ' '))