diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2019-07-09 15:11:49 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-29 16:53:35 +0000 |
commit | 90e52483bf572fd6d15bdfa5e0904ed0aa8b4199 (patch) | |
tree | 0245e28567161ef28d6465197b73b059e50fb3db /DynamicTablesPkg/Include/StandardNameSpaceObjects.h | |
parent | aa9aff2d4e1aa93ceadd881dc1749f8ae7061b3f (diff) | |
download | edk2-90e52483bf572fd6d15bdfa5e0904ed0aa8b4199.zip edk2-90e52483bf572fd6d15bdfa5e0904ed0aa8b4199.tar.gz edk2-90e52483bf572fd6d15bdfa5e0904ed0aa8b4199.tar.bz2 |
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>
Diffstat (limited to 'DynamicTablesPkg/Include/StandardNameSpaceObjects.h')
-rw-r--r-- | DynamicTablesPkg/Include/StandardNameSpaceObjects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Include/StandardNameSpaceObjects.h b/DynamicTablesPkg/Include/StandardNameSpaceObjects.h index 21bb7de..0ba6b16 100644 --- a/DynamicTablesPkg/Include/StandardNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/StandardNameSpaceObjects.h @@ -79,7 +79,7 @@ typedef struct CmAStdObjAcpiTableInfo { UINT32 AcpiTableSignature;
/// The ACPI table revision
- UINT32 AcpiTableRevision;
+ UINT8 AcpiTableRevision;
/// The ACPI Table Generator ID
ACPI_TABLE_GENERATOR_ID TableGeneratorId;
|