Changeset: 933d2af8df7c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/933d2af8df7c
Modified Files:
        sql/backends/monet5/dict.c
Branch: dict
Log Message:

use unsigned types for offsets


diffs (21 lines):

diff --git a/sql/backends/monet5/dict.c b/sql/backends/monet5/dict.c
--- a/sql/backends/monet5/dict.c
+++ b/sql/backends/monet5/dict.c
@@ -138,7 +138,7 @@ DICTdecompress(Client cntxt, MalBlkPtr m
        BATiter ui = bat_iterator_nolock(u);
        //if (ATOMvarsized(u->ttype)) {
        if (o->ttype == TYPE_bte) {
-               bte *op = Tloc(o, 0);
+               unsigned char *op = Tloc(o, 0);
                BATloop(o, p, q) {
                        BUN up = op[p];
                if (BUNappend(b, BUNtail(ui, up), false) != GDK_SUCCEED) {
@@ -150,7 +150,7 @@ DICTdecompress(Client cntxt, MalBlkPtr m
                        }
                }
        } else if (o->ttype == TYPE_sht) {
-               sht *op = Tloc(o, 0);
+               unsigned short *op = Tloc(o, 0);
                BATloop(o, p, q) {
                        BUN up = op[p];
                if (BUNappend(b, BUNtail(ui, up), false) != GDK_SUCCEED) {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to