* include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast

rather than LL suffix.
This commit is contained in:
Vladimir Serbinenko 2013-12-18 07:39:15 +01:00
parent e8c360ca4a
commit b3aea1bc26
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
rather than LL suffix.
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.

View file

@ -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)