//\r
// Make sure the memory type in the gMemoryTypeInformation[] array is valid\r
//\r
- Type = gMemoryTypeInformation[Index].Type;\r
+ Type = (EFI_MEMORY_TYPE) (gMemoryTypeInformation[Index].Type);\r
if (Type < 0 || Type > EfiMaxMemoryType) {\r
continue;\r
}\r
//\r
// Make sure the memory type in the gMemoryTypeInformation[] array is valid\r
//\r
- Type = gMemoryTypeInformation[FreeIndex].Type;\r
+ Type = (EFI_MEMORY_TYPE) (gMemoryTypeInformation[FreeIndex].Type);\r
if (Type < 0 || Type > EfiMaxMemoryType) {\r
continue;\r
}\r
//\r
// Make sure the memory type in the gMemoryTypeInformation[] array is valid\r
//\r
- Type = gMemoryTypeInformation[Index].Type;\r
+ Type = (EFI_MEMORY_TYPE) (gMemoryTypeInformation[Index].Type);\r
if (Type < 0 || Type > EfiMaxMemoryType) {\r
continue;\r
}\r
// If the number of pages reserved for a memory type is 0, then all allocations for that type\r
// should be in the default range.\r
//\r
- for (Type = 0; Type < EfiMaxMemoryType; Type++) {\r
+ for (Type = (EFI_MEMORY_TYPE) 0; Type < EfiMaxMemoryType; Type++) {\r
for (Index = 0; gMemoryTypeInformation[Index].Type != EfiMaxMemoryType; Index++) {\r
if (Type == (EFI_MEMORY_TYPE)gMemoryTypeInformation[Index].Type) {\r
mMemoryTypeStatistics[Type].InformationIndex = Index;\r
\r
--*/\r
{\r
- EFI_STATUS Status;\r
UINT64 Start;\r
\r
//\r
if (Start == 0) {\r
DEBUG ((EFI_D_ERROR | EFI_D_PAGE, "AllocatePoolPages: failed to allocate %d pages\n", NumberOfPages));\r
} else {\r
- Status = CoreConvertPages (Start, NumberOfPages, PoolType);\r
+ CoreConvertPages (Start, NumberOfPages, PoolType);\r
}\r
\r
return (VOID *)(UINTN)Start;\r