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

Fix a cast.
(grafted from 7346ecf75fbdcca09e20c85a3deb7ae807307f65)


diffs (12 lines):

diff --git a/common/stream/bs.c b/common/stream/bs.c
--- a/common/stream/bs.c
+++ b/common/stream/bs.c
@@ -61,7 +61,7 @@ bs_write(stream *restrict ss, const void
                if (todo < n)
                        n = todo;
                memcpy(s->buf + s->nr, buf, n);
-               s->nr += (unsigned) n;
+               s->nr += (uint16_t) n;
                todo -= n;
                buf = ((const char *) buf + n);
                if (s->nr == sizeof(s->buf)) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to