From 0c41d68ff38043c75be386cee7640ce856a8b3b1 Mon Sep 17 00:00:00 2001 From: Christopher Dawes Date: Thu, 21 Nov 2024 08:58:36 +0000 Subject: [PATCH] fix: C standard requires prototype (#807) Unable to compile on Mac without a static cast to ensure the return type of the thread id. --- tests/integration/t_local_cache_threading.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/t_local_cache_threading.c b/tests/integration/t_local_cache_threading.c index ce101c364..5cd67aa77 100644 --- a/tests/integration/t_local_cache_threading.c +++ b/tests/integration/t_local_cache_threading.c @@ -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;