QcomModulePkg: Library: Be specific in using UINT32 or UINT64 instead of using UINTN
UNITN shoud only be used to define register width such as addresses,
otherwise UNIT32 can be used for buffer size. Use of UNIT64 should be
justified in the code. Do not mix UNIT32, UNIT64, UNITN in arithmetic
expressions
CRs-Fixed: 1079895
Change-Id: Icbba9f894c6a450fd6265829ed9d63ece56a9c73
diff --git a/QcomModulePkg/Library/BootLib/Board.c b/QcomModulePkg/Library/BootLib/Board.c
index 9b5aead..4f6599d 100644
--- a/QcomModulePkg/Library/BootLib/Board.c
+++ b/QcomModulePkg/Library/BootLib/Board.c
@@ -98,12 +98,12 @@
return Status;
}
-EFI_STATUS BaseMem(UINTN *BaseMemory)
+EFI_STATUS BaseMem(UINT64 *BaseMemory)
{
EFI_STATUS Status = EFI_NOT_FOUND;
RamPartitionEntry *RamPartitions = NULL;
UINT32 NumPartitions = 0;
- UINTN SmallestBase;
+ UINT64 SmallestBase;
UINT32 i = 0;
Status = GetRamPartitions(&RamPartitions, &NumPartitions);