From b3aea1bc267020536fd78f4809c6d2b4335e2030 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 18 Dec 2013 07:39:15 +0100 Subject: [PATCH] * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast rather than LL suffix. --- ChangeLog | 5 +++++ include/grub/efi/api.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6f1303fce..cb916ba75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-18 Vladimir Serbinenko + + * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast + rather than LL suffix. + 2013-12-18 Vladimir Serbinenko * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover. diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h index c4b3acd22..5ebdd9f42 100644 --- a/include/grub/efi/api.h +++ b/include/grub/efi/api.h @@ -470,7 +470,7 @@ typedef grub_uint16_t grub_efi_char16_t; typedef grub_efi_intn_t grub_efi_status_t; #define GRUB_EFI_ERROR_CODE(value) \ - ((1LL << (sizeof (grub_efi_status_t) * 8 - 1)) | (value)) + ((((grub_efi_status_t) 1) << (sizeof (grub_efi_status_t) * 8 - 1)) | (value)) #define GRUB_EFI_WARNING_CODE(value) (value)