Skip to content

Commit 07c31c6

Browse files
alnyanIsaacWoods
authored andcommitted
aml: Fix DefLNot/DefSubtract
1 parent bce6e52 commit 07c31c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aml/src/expression.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ where
105105
opcode(opcode::DEF_SUBTRACT_OP)
106106
.then(comment_scope(
107107
DebugVerbosity::AllScopes,
108-
"DefAdd",
108+
"DefSubtract",
109109
term_arg().then(term_arg()).then(target()).map_with_context(
110110
|((left_arg, right_arg), target), context| {
111111
let left = try_with_context!(context, left_arg.as_integer(context));
@@ -419,7 +419,7 @@ where
419419
"DefLNot",
420420
term_arg().map_with_context(|arg, context| {
421421
let operand = try_with_context!(context, arg.as_bool());
422-
(Ok(AmlValue::Boolean(operand)), context)
422+
(Ok(AmlValue::Boolean(!operand)), context)
423423
}),
424424
))
425425
.map(|((), result)| Ok(result))

0 commit comments

Comments
 (0)