From 36c40a1d661791c4cf067fd0b8733e8324908de6 Mon Sep 17 00:00:00 2001 From: choi wonsick Date: Mon, 2 Sep 2024 22:07:09 +0900 Subject: [PATCH] tests: Fix test 003 thread failure Fix tests/s-thread.c failure from compiler optimization in ubuntu24.04, clang version 18.1.3 Signed-off-by: choi wonsick --- tests/s-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/s-thread.c b/tests/s-thread.c index df834e6b7..9e6b79ff4 100644 --- a/tests/s-thread.c +++ b/tests/s-thread.c @@ -23,7 +23,7 @@ static int b(void *arg) static int c(void *arg) { - return *(int *)arg; + return *(long *)arg; } static void *foo(void *arg)