POOL *Pool;\r
UINTN Index;\r
\r
- if (MemoryType >= 0 && MemoryType < EfiMaxMemoryType) {\r
+ if ((UINT32)MemoryType < EfiMaxMemoryType) {\r
return &mPoolHead[MemoryType];\r
}\r
\r
// portion of that memory type has been freed. If it has, then free the\r
// list entry for that memory type\r
//\r
- if (Pool->MemoryType < 0 && Pool->Used == 0) {\r
+ if ((INT32)Pool->MemoryType < 0 && Pool->Used == 0) {\r
RemoveEntryList (&Pool->Link);\r
CoreFreePoolI (Pool);\r
}\r