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

Value is unsigned, so compare to unsigned equivalent of nil.


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
@@ -976,7 +976,7 @@ DICTrenumber(Client cntxt, MalBlkPtr mb,
                unsigned char *mp = Tloc(m, 0);
                for(BUN i = 0; i<cnt; i++) {
                        np[i] = mp[op[i]];
-                       havenil |= is_bte_nil(np[i]);
+                       havenil |= np[i] == 128;
                }
        } else {
                unsigned short *np = Tloc(n, 0);
@@ -984,7 +984,7 @@ DICTrenumber(Client cntxt, MalBlkPtr mb,
                unsigned short *mp = Tloc(m, 0);
                for(BUN i = 0; i<cnt; i++) {
                        np[i] = mp[op[i]];
-                       havenil |= is_sht_nil(np[i]);
+                       havenil |= np[i] == 32768;
                }
        }
        BATsetcount(n, cnt);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to