summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-05-17 20:07:34 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-05-17 20:07:34 +0000
commit001c01eef7ce3b0ebe8082a1954ebd6c2e877a34 (patch)
tree91d560589cc6c9e7eb8c3859337cfc60148ece57 /sys
parent92d2756be02c0ea2485f97eea61c64ab1c7913e5 (diff)
Cast alpha_pal_swpipl return value to int in splx, to make sure both sides
of the ternary operator have the same type. NFC
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/intr.h4
1 files changed, 2 insertions, 2 deletions
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);