From: klu2 Date: Tue, 29 Apr 2008 04:22:16 +0000 (+0000) Subject: Fix the bug about comparing with mismatched integrate type X-Git-Tag: edk2-stable201903~21062 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=464674999b4e70f6d34ebdf9a2af6bc0c46c273f Fix the bug about comparing with mismatched integrate type git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5147 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Include/Library/HobLib.h b/MdePkg/Include/Library/HobLib.h index 50e0d10676..f2bc43300b 100644 --- a/MdePkg/Include/Library/HobLib.h +++ b/MdePkg/Include/Library/HobLib.h @@ -393,7 +393,7 @@ BuildMemoryAllocationHob ( #define GET_HOB_TYPE(Hob) ((Hob).Header->HobType) #define GET_HOB_LENGTH(Hob) ((Hob).Header->HobLength) #define GET_NEXT_HOB(Hob) ((Hob).Raw + GET_HOB_LENGTH (Hob)) -#define END_OF_HOB_LIST(Hob) (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_END_OF_HOB_LIST) +#define END_OF_HOB_LIST(Hob) (GET_HOB_TYPE (Hob) == (UINT16)EFI_HOB_TYPE_END_OF_HOB_LIST) // // Get the data and data size field of GUID