aboutsummaryrefslogtreecommitdiffstats
path: root/source/compiler/aslexternal.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-07-17 22:53:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-07-17 22:53:36 +0000
commitb1dc29fa09052190e87f93cf1888edea9c42df24 (patch)
treebc4012660993f740d685e5655598353a450706ec /source/compiler/aslexternal.c
parent93207c1c89bcf8c2291abed617712292c27920f3 (diff)
downloadsrc-b1dc29fa09052190e87f93cf1888edea9c42df24.tar.gz
src-b1dc29fa09052190e87f93cf1888edea9c42df24.zip
Import ACPICA 20200717.vendor/acpica/20200717
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=363292 svn path=/vendor-sys/acpica/20200717/; revision=363293; tag=vendor/acpica/20200717
Diffstat (limited to 'source/compiler/aslexternal.c')
-rw-r--r--source/compiler/aslexternal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/compiler/aslexternal.c b/source/compiler/aslexternal.c
index 315247be60f1..a05ba118df0d 100644
--- a/source/compiler/aslexternal.c
+++ b/source/compiler/aslexternal.c
@@ -200,6 +200,14 @@ ExDoExternal (
ExternType = AnMapObjTypeToBtype (ExternTypeOp);
+ if (ExternType != ACPI_BTYPE_METHOD)
+ {
+ /*
+ * If this is not a method, it has zero parameters this local variable
+ * is used only for methods
+ */
+ ParamCount = 0;
+ }
/*
* The parser allows optional parameter return types regardless of the