Skip to content

Commit 0c41d68

Browse files
committed
fix: C standard requires prototype (#807)
Unable to compile on Mac without a static cast to ensure the return type of the thread id.
1 parent 42f7af6 commit 0c41d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/t_local_cache_threading.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct rand_state {
8282
#define RNG_MAX (RNG_MODULUS - 1)
8383

8484
static unsigned long threadid_get_callback() {
85-
return aws_thread_current_thread_id();
85+
return (unsigned long)aws_thread_current_thread_id();
8686
}
8787

8888
static struct aws_mutex *mutex_array = NULL;

0 commit comments

Comments
 (0)