mirror of https://github.com/acpica/acpica/
iASL: Fix a couple of warnings for PHAT table (on MSVC).
Add a couple of casts, and initialize Status to AE_OK.
This commit is contained in:
parent
2197e354fb
commit
87a254a780
|
@ -965,7 +965,7 @@ ACPI_STATUS
|
|||
DtCompilePhat (
|
||||
void **List)
|
||||
{
|
||||
ACPI_STATUS Status;
|
||||
ACPI_STATUS Status = AE_OK;
|
||||
DT_SUBTABLE *Subtable;
|
||||
DT_SUBTABLE *ParentTable;
|
||||
DT_FIELD **PFieldList = (DT_FIELD **) List;
|
||||
|
@ -1058,7 +1058,7 @@ DtCompilePhat (
|
|||
ParentTable = DtPeekSubtable ();
|
||||
DtInsertSubtable (ParentTable, Subtable);
|
||||
|
||||
PhatHeader->Length += Subtable->Length;
|
||||
PhatHeader->Length += (UINT16) Subtable->Length;
|
||||
|
||||
/* Compile vendor specific data */
|
||||
|
||||
|
@ -1070,7 +1070,7 @@ DtCompilePhat (
|
|||
ParentTable = DtPeekSubtable ();
|
||||
DtInsertSubtable (ParentTable, Subtable);
|
||||
|
||||
PhatHeader->Length += Subtable->Length;
|
||||
PhatHeader->Length += (UINT16) Subtable->Length;
|
||||
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue