From: Mark Thom Date: Sat, 17 Dec 2022 18:54:20 +0000 (-0700) Subject: use proper dynamic arities in JmpByCall and JmpByExecute (#1605, #1606) X-Git-Tag: v0.9.2~247 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=d804d8a92ea844e795670f4d0e8a90291d8b936e;p=scryer-prolog.git use proper dynamic arities in JmpByCall and JmpByExecute (#1605, #1606) --- diff --git a/build/instructions_template.rs b/build/instructions_template.rs index 3780f2c9..f58dbfed 100644 --- a/build/instructions_template.rs +++ b/build/instructions_template.rs @@ -722,9 +722,9 @@ enum InstructionTemplate { Allocate(usize), // num_frames. #[strum_discriminants(strum(props(Arity = "0", Name = "deallocate")))] Deallocate, - #[strum_discriminants(strum(props(Arity = "3", Name = "jmp_by_call")))] + #[strum_discriminants(strum(props(Arity = "arity", Name = "jmp_by_call")))] JmpByCall(usize, usize), // arity, relative offset. - #[strum_discriminants(strum(props(Arity = "3", Name = "jmp_by_execute")))] + #[strum_discriminants(strum(props(Arity = "arity", Name = "jmp_by_execute")))] JmpByExecute(usize, usize), // arity, relative offset. #[strum_discriminants(strum(props(Arity = "1", Name = "rev_jmp_by")))] RevJmpBy(usize),