mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
aa9aff2d4e
commit
90e52483bf
|
@ -287,10 +287,10 @@ typedef struct AcpiTableGenerator {
|
|||
UINT32 AcpiTableSignature;
|
||||
|
||||
/// The ACPI table revision.
|
||||
UINT32 AcpiTableRevision;
|
||||
UINT8 AcpiTableRevision;
|
||||
|
||||
/// The minimum supported ACPI table revision.
|
||||
UINT32 MinAcpiTableRevision;
|
||||
UINT8 MinAcpiTableRevision;
|
||||
|
||||
/// The ACPI table creator ID.
|
||||
UINT32 CreatorId;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue