From 45b3f99e551813c755032730af9d75cd2720960d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 25 Nov 2024 16:24:28 -0800 Subject: [PATCH] libsysprof-capture: unsigned cast before shift --- src/libsysprof-capture/sysprof-collector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c index 417eb1e9..e41e8018 100644 --- a/src/libsysprof-capture/sysprof-collector.c +++ b/src/libsysprof-capture/sysprof-collector.c @@ -424,7 +424,7 @@ sysprof_collector_get (void) #else self->tid = self->pid; #endif - self->next_counter_id = (self->pid << 16); + self->next_counter_id = ((unsigned)self->pid << 16); pthread_mutex_lock (&control_fd_lock);