From 573cb24a31289b7610d207e5147cdd158000bd20 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Fri, 17 May 2024 12:28:07 +0300 Subject: Fix uClibc build for nds32 with gcc-14. Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/nds32/jmpbuf-unwind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/nds32/jmpbuf-unwind.h b/libc/sysdeps/linux/nds32/jmpbuf-unwind.h index 8499e99b4..5b85f4d23 100644 --- a/libc/sysdeps/linux/nds32/jmpbuf-unwind.h +++ b/libc/sysdeps/linux/nds32/jmpbuf-unwind.h @@ -20,7 +20,7 @@ static inline uintptr_t __attribute__ ((unused)) _jmpbuf_sp (__jmp_buf regs) { - uintptr_t sp = &(regs)[0].__regs[__JMP_BUF_SP]; + uintptr_t sp = (uintptr_t) &(regs)[0].__regs[__JMP_BUF_SP]; return sp; } -- cgit v1.2.3