From 94b2f62258c88c0df1497d2aa5391d12206c7247 Mon Sep 17 00:00:00 2001 From: Jordan Hargrave Date: Thu, 18 Jan 2007 19:01:03 +0000 Subject: Added fix for static integer ok marco@ --- sys/dev/acpi/dsdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpi/dsdt.c') 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 * @@ -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; -- cgit v1.2.3