Jelajahi Sumber

Fix lack of store in DefAnd

Isaac Woods 4 tahun lalu
induk
melakukan
501b18023c
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  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)
                 },
             ),
         ))