summaryrefslogtreecommitdiff
path: root/source/compiler/aslopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/aslopt.c')
-rw-r--r--source/compiler/aslopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/compiler/aslopt.c b/source/compiler/aslopt.c
index fedc5ff0dc1d7..1a5e87d84e1f0 100644
--- a/source/compiler/aslopt.c
+++ b/source/compiler/aslopt.c
@@ -305,7 +305,7 @@ OptBuildShortestPath (
for (i = 0; i < NumCarats; i++)
{
- NewPathExternal[i] = '^';
+ NewPathExternal[i] = AML_PARENT_PREFIX;
}
/*
@@ -329,7 +329,7 @@ OptBuildShortestPath (
if (Op->Asl.AmlOpcode == AML_SCOPE_OP)
{
- NewPathExternal[i] = '^';
+ NewPathExternal[i] = AML_PARENT_PREFIX;
i++;
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "(EXTRA ^)"));
}
@@ -448,7 +448,7 @@ OptOptimizeNameDeclaration (
if (((CurrentNode == AcpiGbl_RootNode) ||
(Op->Common.Parent->Asl.ParseOpcode == PARSEOP_DEFINITIONBLOCK)) &&
- (AmlNameString[0] == '\\'))
+ (ACPI_IS_ROOT_PREFIX (AmlNameString[0])))
{
/*
* The current scope is the root, and the namepath has a root prefix