libsysprof-capture: unsigned cast before shift

This commit is contained in:
Christian Hergert
2024-11-25 16:24:28 -08:00
parent c6cb5473ae
commit 45b3f99e55

View File

@ -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);