Skip to content

Commit

Permalink
fix: C standard requires prototype (#807)
Browse files Browse the repository at this point in the history
Unable to compile on Mac without a static cast to ensure the return
type of the thread id.
  • Loading branch information
dawesc committed Nov 22, 2024
1 parent 42f7af6 commit 0c41d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/t_local_cache_threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct rand_state {
#define RNG_MAX (RNG_MODULUS - 1)

static unsigned long threadid_get_callback() {
return aws_thread_current_thread_id();
return (unsigned long)aws_thread_current_thread_id();
}

static struct aws_mutex *mutex_array = NULL;
Expand Down

0 comments on commit 0c41d68

Please sign in to comment.