audk/ArmPkg/Library/ArmMmuLib/Arm
Michael Kubacki 2bdc90429a ArmPkg/ArmMmuLib: Explicitly cast UINT32 data conversions
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2835

There's several occurrences of a UINT64 or an EFI_PHYSICAL_ADDRESS
being assigned to a UINT32 value in ArmMmuLib. These result in
warning C4244 in VS2019:

warning C4244: '=': conversion from 'UINT64' to 'UINT32', possible
loss of data

warning C4244: '=': conversion from 'EFI_PHYSICAL_ADDRESS' to
'UINT32', possible loss of data

This change explicitly casts the values to UINT32.

These can be reproduced with the following build command:
build -b DEBUG -a ARM -t VS2019 -p ArmPkg/ArmPkg.dsc
-m ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2020-10-22 14:48:12 +00:00
..
ArmMmuLibConvert.c ArmPkg/ArmMmuLib ARM: split ArmMmuLibCore.c into core and update code 2020-03-05 21:08:30 +00:00
ArmMmuLibCore.c ArmPkg/ArmMmuLib: Explicitly cast UINT32 data conversions 2020-10-22 14:48:12 +00:00
ArmMmuLibUpdate.c ArmPkg/ArmMmuLib: Explicitly cast UINT32 data conversions 2020-10-22 14:48:12 +00:00
ArmMmuLibV7Support.S ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmMmuLibV7Support.asm ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00