]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: Fix ACPI table rev field width
authorSami Mujawar <sami.mujawar@arm.com>
Tue, 9 Jul 2019 14:11:49 +0000 (15:11 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 29 Mar 2020 16:53:35 +0000 (16:53 +0000)
commit90e52483bf572fd6d15bdfa5e0904ed0aa8b4199
tree0245e28567161ef28d6465197b73b059e50fb3db
parentaa9aff2d4e1aa93ceadd881dc1749f8ae7061b3f
DynamicTablesPkg: Fix ACPI table rev field width

The VS2017 compiler reports 'warning C4244: '=': conversion from
'const UINT32' to 'UINT8', possible loss of data' when the ACPI
table revision field is being updated.

The width of the revision field in the EFI_ACPI_DESCRIPTION_HEADER
struct is 8-bit wide. Therefore, to fix the above warning make the
ACPI Table revision field usage 8-bit wide across Dynamic Tables
Framework.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
DynamicTablesPkg/Include/AcpiTableGenerator.h
DynamicTablesPkg/Include/StandardNameSpaceObjects.h