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

Use the correct type.


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
@@ -1667,7 +1667,7 @@ BBPjson_upgrade(json_storage_conversion 
        BAT *b;
        int JSON_type = ATOMindex("json");
        bat *upd = GDKmalloc(sizeof(bat) * ATOMIC_GET(&BBPsize));
-       BUN nupd = 0;
+       int nupd = 0;
 
        if (upd == NULL) {
                TRC_CRITICAL(GDK, "could not create bat\n");
@@ -1701,7 +1701,7 @@ BBPjson_upgrade(json_storage_conversion 
                upd[nupd++] = bid;
        }
        BBPunlock();
-       if (nupd > (BUN)1 &&
+       if (nupd > 1 &&
            TMsubcommit_list(upd, NULL, nupd, -1, -1) != GDK_SUCCEED) {
                TRC_CRITICAL(GDK, "failed to commit changes\n");
                GDKfree(upd);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to