浏览代码

Fix lack of store in DefAnd

Isaac Woods 4 年之前
父节点
当前提交
501b18023c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      aml/src/type2.rs

+ 4 - 1
aml/src/type2.rs

@@ -101,7 +101,10 @@ where
                 |((left_arg, right_arg), target), context| {
                     let left = try_with_context!(context, left_arg.as_integer(context));
                     let right = try_with_context!(context, right_arg.as_integer(context));
-                    (Ok(AmlValue::Integer(left & right)), context)
+                    let result = AmlValue::Integer(left & right);
+
+                    try_with_context!(context, context.store(target, result.clone()));
+                    (Ok(result), context)
                 },
             ),
         ))