Changeset: 7f76f6c3800b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7f76f6c3800b
Modified Files:
        common/stream/bs.c
Branch: Dec2025
Log Message:

Add some casting.


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]

Reply via email to