fix copy_term/2 variable copying bug in lists (#923, #2127)

This commit is contained in:
Mark
2023-11-21 12:50:10 -07:00
parent a3e83d59be
commit 3841b29db8
6 changed files with 68 additions and 9 deletions

View File

@@ -334,7 +334,12 @@ impl MachineState {
self.ball.boundary = self.heap.len();
copy_term(
CopyBallTerm::new(&mut self.stack, &mut self.heap, &mut self.ball.stub),
CopyBallTerm::new(
&mut self.attr_var_init.attr_var_queue,
&mut self.stack,
&mut self.heap,
&mut self.ball.stub,
),
addr,
AttrVarPolicy::DeepCopy,
);