summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/include/efierr.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/efi/include/efierr.h')
-rw-r--r--sys/boot/efi/include/efierr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/include/efierr.h b/sys/boot/efi/include/efierr.h
index 921b297..a8b6557 100644
--- a/sys/boot/efi/include/efierr.h
+++ b/sys/boot/efi/include/efierr.h
@@ -31,7 +31,7 @@ Revision History
#define EFIWARN(a) (a)
#define EFI_ERROR(a) (((INTN) a) < 0)
-#define EFI_ERROR_CODE(a) (a & ~EFI_ERROR_MASK)
+#define EFI_ERROR_CODE(a) (unsigned long)(a & ~EFI_ERROR_MASK)
#define EFI_SUCCESS 0
OpenPOWER on IntegriCloud