mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
iASL: Fix predefined name object regression.
Fixes a problem introduced in version 20100304. An error is incorrectly generated if a predefined name is declared as a static named object with a value defined using the keywords "Zero", "One", or "Ones". Lin Ming.
This commit is contained in:
parent
9dff111362
commit
1690062af9
@ -441,7 +441,7 @@ ApCheckForPredefinedName (
|
||||
*
|
||||
* RETURN: None
|
||||
*
|
||||
* DESCRIPTION: Check for the "special" predefined names -
|
||||
* DESCRIPTION: Check for the "special" predefined names -
|
||||
* _Lxx, _Exx, _Qxx, and _T_x
|
||||
*
|
||||
******************************************************************************/
|
||||
@ -534,6 +534,9 @@ ApCheckObjectType (
|
||||
|
||||
switch (Op->Asl.ParseOpcode)
|
||||
{
|
||||
case PARSEOP_ZERO:
|
||||
case PARSEOP_ONE:
|
||||
case PARSEOP_ONES:
|
||||
case PARSEOP_INTEGER:
|
||||
ReturnBtype = ACPI_RTYPE_INTEGER;
|
||||
break;
|
||||
@ -552,7 +555,7 @@ ApCheckObjectType (
|
||||
|
||||
default:
|
||||
/* Not one of the supported object types */
|
||||
|
||||
|
||||
goto TypeErrorExit;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user