summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjordan <jordan@openbsd.org>2007-01-18 19:01:02 +0000
committerjordan <jordan@openbsd.org>2007-01-18 19:01:02 +0000
commit06846c896efa98fb37ea22446e685ef2acf5951e (patch)
tree8dd5c7967cb11b750ed625343a9c39d0ac022728 /sys
parentNo longer print the 'bios id' field in the dmesg, its of dubious diagnostic (diff)
downloadwireguard-openbsd-06846c896efa98fb37ea22446e685ef2acf5951e.tar.xz
wireguard-openbsd-06846c896efa98fb37ea22446e685ef2acf5951e.zip
Added fix for static integer
ok marco@
Diffstat (limited to 'sys')
-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;