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

Add a cast.


diffs (21 lines):

diff --git a/gdk/gdk_system.c b/gdk/gdk_system.c
--- a/gdk/gdk_system.c
+++ b/gdk/gdk_system.c
@@ -414,7 +414,7 @@ MT_thread_register(void)
                .wtid = GetCurrentThreadId(),
 #endif
                .refs = 1,
-               .tid = ATOMIC_INC(&GDKthreadid),
+               .tid = (MT_Id) ATOMIC_INC(&GDKthreadid),
        };
        snprintf(self->threadname, sizeof(self->threadname), "foreign %zu", 
self->tid);
        ATOMIC_INIT(&self->exited, 0);
@@ -910,7 +910,7 @@ MT_create_thread(MT_Id *t, void (*f) (vo
                .waiting = false,
                .detached = (d == MT_THR_DETACHED),
                .refs = 1,
-               .tid = ATOMIC_INC(&GDKthreadid),
+               .tid = (MT_Id) ATOMIC_INC(&GDKthreadid),
        };
        MT_lock_set(&thread_init_lock);
        /* remember the list of callback functions we need to call for
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to