summaryrefslogtreecommitdiff
path: root/source/compiler/asloperands.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-09-14 22:53:11 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-09-14 22:53:11 +0000
commitebef5c959a0ea58fa05c4a5a80bb93104780bf87 (patch)
tree033c7834a7ab5fe0b48b11ac066372bfd32f2c22 /source/compiler/asloperands.c
parentfc8e34d9a95f87b780f9ee3d400dd995aba2ce27 (diff)
Notes
Diffstat (limited to 'source/compiler/asloperands.c')
-rw-r--r--source/compiler/asloperands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/compiler/asloperands.c b/source/compiler/asloperands.c
index 37274e79d610..6d4433d873ea 100644
--- a/source/compiler/asloperands.c
+++ b/source/compiler/asloperands.c
@@ -182,6 +182,10 @@ OpnDoMethod (
Next = Next->Asl.Next;
if (Next->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG)
{
+ /* This is a ByteConstExpr, so eval the constant now */
+
+ OpcAmlConstantWalk (Next, 0, NULL);
+
if (Next->Asl.Value.Integer > 15)
{
AslError (ASL_ERROR, ASL_MSG_SYNC_LEVEL, Next, NULL);