Changeset: 9a5076783afd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9a5076783afd
Modified Files:
        gdk/gdk_bbp.c
Branch: Mar2025
Log Message:

Fix check for error.


diffs (21 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1322,7 +1322,7 @@ fixhashashbat(BAT *b)
                }
                const char *s = vh1.base + o;
                var_t no = strPut(b, &o, s);
-               if (no == 0) {
+               if (no == (var_t) -1) {
                        HEAPfree(&h1, false);
                        HEAPfree(&vh1, false);
                        HEAPdecref(h2, false);
@@ -1525,7 +1525,7 @@ jsonupgradebat(BAT *b, json_storage_conv
                }
                var_t no = strPut(b, &o, ns);
                GDKfree(ns);
-               if (no == 0) {
+               if (no == (var_t) -1) {
                        HEAPfree(&h1, false);
                        HEAPfree(&vh1, false);
                        HEAPdecref(h2, false);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to