Skip to content

Commit

Permalink
Fix non-integer cast to pthread_t (#17512)
Browse files Browse the repository at this point in the history
  • Loading branch information
markand authored Feb 3, 2025
1 parent 359258a commit f73df57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/common/linux_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void linux_close_illuminance_sensor(linux_illuminance_sensor_t *sensor)

if (sensor->thread)
{
pthread_t thread = sthread_get_thread_id(sensor->thread);
pthread_t thread = (pthread_t)sthread_get_thread_id(sensor->thread);
sensor->done = true;

if (pthread_cancel(thread) != 0)
Expand Down

0 comments on commit f73df57

Please sign in to comment.