]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 18 Dec 2013 06:39:15 +0000 (07:39 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 18 Dec 2013 06:39:15 +0000 (07:39 +0100)
rather than LL suffix.

ChangeLog
include/grub/efi/api.h

index 6f1303fced8c689535ef5309cd2226646787655e..cb916ba75fde790221223d656f38875e161df6f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index c4b3acd22ac9b2872a016a9137b129276e9280a6..5ebdd9f4203eb39d2199a790a705e349dea97800 100644 (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)