From 68db122863ebb05b08a741cfa3413082b6afadcc Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Thu, 26 Jul 2012 09:12:46 +0000 Subject: MdeModulePkg/CoreDxe: Fixed compiler warning 'integer conversion resulted in a change of sign' Signed-off-by: Olivier Martin Reviewed-by: Sun Rui git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13560 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Mem/Pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Core/Dxe/Mem/Pool.c b/MdeModulePkg/Core/Dxe/Mem/Pool.c index a435b9760c..cdf3f8f095 100644 --- a/MdeModulePkg/Core/Dxe/Mem/Pool.c +++ b/MdeModulePkg/Core/Dxe/Mem/Pool.c @@ -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); -- cgit v1.2.3