Changeset: 713208241d01 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/713208241d01
Modified Files:
common/stream/bs.c
Branch: Mar2025
Log Message:
Add some casting.
(grafted from 7f76f6c3800bbae37abc6e530b17a2d6b918dcc5)
diffs (21 lines):
diff --git a/common/stream/bs.c b/common/stream/bs.c
--- a/common/stream/bs.c
+++ b/common/stream/bs.c
@@ -223,7 +223,7 @@ bs_read(stream *restrict ss, void *restr
n = todo;
memcpy(buf, s->buf + s->nr, n);
buf = (void *) ((char *) buf + n);
- s->nr += n;
+ s->nr += (uint16_t) n;
todo -= n;
cnt += n;
if (s->nr == s->itotal)
@@ -270,7 +270,7 @@ bs_read(stream *restrict ss, void *restr
n = todo;
memcpy(buf, s->buf, n);
buf = (void *) ((char *) buf + n);
- s->nr += n;
+ s->nr += (uint16_t) n;
todo -= n;
cnt += n;
if (s->nr == s->itotal)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]