summaryrefslogtreecommitdiff
path: root/kexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec.c')
-rw-r--r--kexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec.c b/kexec.c
index 9ced0157f..d27bfe1c2 100644
--- a/kexec.c
+++ b/kexec.c
@@ -91,7 +91,7 @@ SYS_FUNC(kexec_load)
/* flags */
unsigned long n = tcp->u_arg[3];
printxval_long(kexec_arch_values, n & KEXEC_ARCH_MASK, "KEXEC_ARCH_???");
- n &= ~KEXEC_ARCH_MASK;
+ n &= ~(unsigned long) KEXEC_ARCH_MASK;
if (n) {
tprints("|");
printflags_long(kexec_load_flags, n, "KEXEC_???");