MdeModulePkg/CoreDxe: Fixed compiler warning 'integer conversion resulted in a change of sign'

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13560 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin 2012-07-26 09:12:46 +00:00
parent c85c6de761
commit 68db122863
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ LookupPoolHead (
// MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI
// OS loaders that are provided by operating system vendors
//
if (MemoryType >= (INT32)0x80000000 && MemoryType <= (INT32)0xffffffff) {
if ((INT32)MemoryType < 0) {
for (Link = mPoolHeadList.ForwardLink; Link != &mPoolHeadList; Link = Link->ForwardLink) {
Pool = CR(Link, POOL, Link, POOL_SIGNATURE);