From bcf0cee545d37646f3b5284fe911055be986ee9d Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Wed, 4 Sep 2024 13:01:39 -0500 Subject: [PATCH] cpukit/stackchk: Explicitly cast from void* to uintptr_t --- cpukit/libmisc/stackchk/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index a4f40cea38..4019e5e48f 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -470,7 +470,7 @@ static bool Stack_check_Visit_thread( { Stack_check_Visitor *visitor; char name[ 22 ]; - uintptr_t sp = _CPU_Context_Get_SP( &the_thread->Registers ); + uintptr_t sp = (uintptr_t) _CPU_Context_Get_SP( &the_thread->Registers ); visitor = arg; _Thread_Get_name( the_thread, name, sizeof( name ) );