From: miod Date: Fri, 17 May 2024 20:07:33 +0000 (+0000) Subject: Cast alpha_pal_swpipl return value to int in splx, to make sure both sides X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1684d4b8bc45290977c5a52b082c0b94bb779655;p=openbsd Cast alpha_pal_swpipl return value to int in splx, to make sure both sides of the ternary operator have the same type. NFC --- diff --git a/sys/arch/alpha/include/intr.h b/sys/arch/alpha/include/intr.h index 10349559f4f..dd7554c81bb 100644 --- a/sys/arch/alpha/include/intr.h +++ b/sys/arch/alpha/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.49 2019/03/24 06:19:26 visa Exp $ */ +/* $OpenBSD: intr.h,v 1.50 2024/05/17 20:07:33 miod Exp $ */ /* $NetBSD: intr.h,v 1.26 2000/06/03 20:47:41 thorpej Exp $ */ /*- @@ -168,7 +168,7 @@ void splassert_check(int, const char *); /* IPL-lowering/restoring macros */ #define splx(s) \ - ((s) == ALPHA_PSL_IPL_0 ? spl0() : alpha_pal_swpipl(s)) + ((s) == ALPHA_PSL_IPL_0 ? spl0() : (int)alpha_pal_swpipl(s)) /* IPL-raising functions/macros */ int splraise(int);