Fix warnings from PR #295 merge - possible loss of data from UINT32 to UINT8 conversions

This commit is contained in:
Saket Dumbre 2024-12-12 08:51:03 -08:00
parent 28b55ece2b
commit 1d7a0aa047
No known key found for this signature in database
GPG Key ID: 7705BCC06A9BE84D

View File

@ -929,11 +929,11 @@ Cleanup:
* pop everything off of the operand stack and delete those
* objects
*/
WalkState->NumOperands = i;
WalkState->NumOperands = (UINT8) (i);
AcpiDsObjStackPopAndDelete (NewNumOperands, WalkState);
/* Restore operand count */
WalkState->NumOperands = PrevNumOperands;
WalkState->NumOperands = (UINT8) (PrevNumOperands);
ACPI_EXCEPTION ((AE_INFO, Status, "While creating Arg %u", Index));
return_ACPI_STATUS (Status);