save arguments to delayed goal before calling verify_attrs (#1304)

This commit is contained in:
Mark Thom
2022-03-01 23:59:33 -07:00
parent bf85cd404c
commit a38f7c8524
3 changed files with 11 additions and 11 deletions

View File

@@ -576,7 +576,9 @@ impl Machine {
self.machine_st.attr_var_init.cp = p;
}
&Instruction::VerifyAttrInterrupt => {
self.run_verify_attr_interrupt();
let (_, arity) = self.code[VERIFY_ATTR_INTERRUPT_LOC].to_name_and_arity();
let arity = std::cmp::max(arity, self.machine_st.num_of_args);
self.run_verify_attr_interrupt(arity);
}
&Instruction::Add(ref a1, ref a2, t) => {
let stub_gen = || functor_stub(atom!("is"), 2);