summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2007-01-18 19:01:03 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2007-01-18 19:01:03 +0000
commit94b2f62258c88c0df1497d2aa5391d12206c7247 (patch)
treefd61b82ffe29037280aeeb36c5aba589780d800a
parent04fa65154ecc4ef1e1022dd4638b9a9f46f355c5 (diff)
Added fix for static integer
ok marco@
-rw-r--r--sys/dev/acpi/dsdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index d013cf2b571..1a659c30f1e 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.c,v 1.75 2007/01/16 21:21:28 marco Exp $ */
+/* $OpenBSD: dsdt.c,v 1.76 2007/01/18 19:01:02 jordan Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -1746,7 +1746,7 @@ aml_cmpvalue(struct aml_value *lhs, struct aml_value *rhs, int opcode)
lt = lhs->type & ~AML_STATIC;
rt = rhs->type & ~AML_STATIC;
if (lt == rt) {
- switch (lhs->type) {
+ switch (lt) {
case AML_OBJTYPE_INTEGER:
rc = (lhs->v_integer - rhs->v_integer);
break;