Changeset: 02330cd583a2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/02330cd583a2
Modified Files:
        gdk/gdk_bbp.c
        sql/backends/monet5/vaults/parquet/pqc_reader.c
Branch: default
Log Message:

Fixes for 32 bit.


diffs (58 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1700,7 +1700,7 @@ fixstrnilbat(BAT *b)
                                  ALGOBATPAR(b));
                        return GDK_SUCCEED;
                }
-               assert(niloff >= 8192);
+               assert(niloff >= GDK_STRHASHSIZE);
        }
 
        if (GDKmove(b->theap->farmid, srcdir, bnme, t,
@@ -1750,13 +1750,13 @@ fixstrnilbat(BAT *b)
        case 1: {
                const uint8_t *p1 = (const uint8_t *) h1.base;
                uint8_t *p2 = (uint8_t *) h2->base;
-               vfree -= 8192;
-               niloff -= 8192;
+               vfree -= GDK_STRHASHSIZE;
+               niloff -= GDK_STRHASHSIZE;
                for (BUN i = 0; i < b->batCount; i++) {
                        uint8_t v = p1[i];
                        if (v == niloff)
                                p2[i] = 0;
-                       else if (v >= vfree || vbase[v + 8192] == '\200')
+                       else if (v >= vfree || vbase[v + GDK_STRHASHSIZE] == 
'\200')
                                p2[i] = 0;
                        else
                                p2[i] = v;
@@ -1766,13 +1766,13 @@ fixstrnilbat(BAT *b)
        case 2: {
                const uint16_t *p1 = (const uint16_t *) h1.base;
                uint16_t *p2 = (uint16_t *) h2->base;
-               vfree -= 8192;
-               niloff -= 8192;
+               vfree -= GDK_STRHASHSIZE;
+               niloff -= GDK_STRHASHSIZE;
                for (BUN i = 0; i < b->batCount; i++) {
                        uint16_t v = p1[i];
                        if (v == niloff)
                                p2[i] = 0;
-                       else if (v >= vfree || vbase[v + 8192] == '\200')
+                       else if (v >= vfree || vbase[v + GDK_STRHASHSIZE] == 
'\200')
                                p2[i] = 0;
                        else
                                p2[i] = v;
diff --git a/sql/backends/monet5/vaults/parquet/pqc_reader.c 
b/sql/backends/monet5/vaults/parquet/pqc_reader.c
--- a/sql/backends/monet5/vaults/parquet/pqc_reader.c
+++ b/sql/backends/monet5/vaults/parquet/pqc_reader.c
@@ -756,7 +756,7 @@ pqc_page_header( pqc_reader_t *r, pqc_cr
                } else {
                        pr->dict_allocated = false;
                        pr->dict = pr->buffer+pos;
-                       if((((ulng)pr->dict) & 15) != 0) { /* copy for 
alignment issues */
+                       if((((size_t)pr->dict) & 15) != 0) { /* copy for 
alignment issues */
                                char *buf = pr->dict;
                                pr->dict = NEW_ARRAY(char, uncompressed_size);
                                if (!pr->dict)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to