Isaac Woods 4 лет назад
Родитель
Сommit
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)
                 },
             ),
         ))